GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit e8a5a6b2 authored by Alex Catarineu's avatar Alex Catarineu

Fix play_videos test

parent 376bbd63
......@@ -428,10 +428,8 @@ our @tests = (
descr => 'Play some videos',
use_net => 1,
marionette_test => 'page',
remote => 1,
remote => 0,
timeout => 50000,
# Bug 30339: temporarily disable test
enable => sub { undef },
},
{
name => 'svg-disable',
......
......@@ -13,9 +13,10 @@ class Test(MarionetteTestCase):
if ts.t['test']['remote']:
test_data_url = ts.t['options']['test_data_url']
self.test_page_url = '%s/%s.html' % (test_data_url, ts.t['test']['name'])
else:
test_data_url = "file://%s" % ts.t['options']['test_data_dir']
self.test_page_url = '%s/%s.html' % (test_data_url, ts.t['test']['name'])
self.test_page_url = self.marionette.absolute_url('%s.html' % (ts.t['test']['name']))
self.marionette.set_pref("network.proxy.allow_hijacking_localhost", False)
if ts.t['test']['timeout']:
self.timeout = ts.t['test']['timeout']
......
......@@ -34,7 +34,8 @@ for (var i = 0; i < videos.length; i++) {
next[v.id] = 'videos_' + (i + 1).toString();
document.getElementById("videos").appendChild(v);
}
document.getElementById("videos_0").play();
const first = document.getElementById("videos_0");
first.addEventListener("canplay", () => first.play());
</script>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment