Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /infrastructure/server/title.any.html - WPT Dashboard Interop Dashboard
- /infrastructure/server/title.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /infrastructure/server/title.any.worker.html - WPT Dashboard Interop Dashboard
// 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();