web: Actually respect the swf url in jsApiBefore
This commit is contained in:
parent
f2b02acf44
commit
7c5c4576cc
|
@ -120,9 +120,13 @@ function jsApiBefore(swf) {
|
|||
});
|
||||
|
||||
if (swf) {
|
||||
await browser.execute((player) => {
|
||||
player.load("/test_assets/example.swf");
|
||||
}, player);
|
||||
await browser.execute(
|
||||
(player, swf) => {
|
||||
player.load(swf);
|
||||
},
|
||||
player,
|
||||
swf,
|
||||
);
|
||||
await playAndMonitor(browser, player);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue