GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Unverified Commit 6d5c9d91 authored by boklm's avatar boklm
Browse files

Bug 16758: add a dom-objects-enumeration-worker test

parent 25b93522
......@@ -308,6 +308,11 @@ our @tests = (
type => 'marionette',
descr => 'Check the list of DOM Objects exposed in the global namespace',
name => 'dom-objects-enumeration-worker',
type => 'marionette',
descr => 'Check the list of DOM Objects exposed in a Worker context',
name => 'navigation-timing',
type => 'marionette',
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette import MarionetteTestCase
import testsuite
class Test(MarionetteTestCase):
def setUp(self):
ts = testsuite.TestSuite()
self.ts = ts
self.expectedObjects = [
def test_dom_objects_enumeration_workers(self):
with self.marionette.using_context('content'):
URL = "file://%s/workers/dom-objects-enumeration.html" % self.ts.t['options']['test_data_dir']
elt = self.marionette.find_element('id', 'enumeration')
err = False
unknown_objects = ''
for l in elt.text.split("\n"):
if l in self.expectedObjects:
err = True
unknown_objects += l + "\n"
err_msg = "Unknown objects:\n%s" % unknown_objects
self.assertFalse(err, msg=err_msg)
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