gecko-dev/testing/web-platform/tests/infrastructure/server/title.any.js
Simon Pieters 63017bb760 Bug 1467745 [wpt PR 11403] - [testharness.js] Get title from the filename if not given, a=testonly
Automatic update from web-platform-tests[testharness.js] Get title from the filename or a META comment if not given (#11403)

--

wpt-commits: f777ec99a11d0d0522e691a8dab93c70d70941f3
wpt-pr: 11403
2018-07-11 07:57:36 +01:00

13 lines
302 B
JavaScript

// META: global=window,dedicatedworker,sharedworker
// META: title=foobar
test(t => {
if (GLOBAL.isWindow()) {
assert_equals(document.title, 'foobar');
assert_false('META_TITLE' in self);
} else {
assert_equals(META_TITLE, 'foobar');
}
assert_equals(t.name, 'foobar');
});
done();