blob: a9542af79aa3cb1644124870f1abf228bbc33b90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// META: global=worker
test(() => {
assert_equals(typeof navigator, "object");
assert_true(navigator instanceof WorkerNavigator);
assert_equals(navigator.appName, "Netscape");
assert_true(navigator.appVersion.indexOf('WebKit') != 0);
assert_equals(typeof navigator.platform, "string");
assert_true(navigator.userAgent.indexOf('WebKit') != 0);
assert_equals(typeof navigator.onLine, "boolean");
assert_equals(navigator.appCodeName, 'Mozilla');
assert_equals(navigator.product, 'Gecko');
}, "Testing Navigator properties on workers.");
|