mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
implement navigator.platform
This commit is contained in:
parent
e68bd8d4ff
commit
132724be2b
3 changed files with 36 additions and 3 deletions
12
tests/wpt/mozilla/meta/mozilla/navigator.html.ini
Normal file
12
tests/wpt/mozilla/meta/mozilla/navigator.html.ini
Normal file
|
@ -0,0 +1,12 @@
|
|||
[navigator.html]
|
||||
type: testharness
|
||||
|
||||
[navigator.platform linux]
|
||||
expected:
|
||||
if os != "linux": FAIL
|
||||
PASS
|
||||
|
||||
[navigator.platform mac]
|
||||
expected:
|
||||
if os != "mac": FAIL
|
||||
PASS
|
|
@ -15,9 +15,19 @@ test(function() {
|
|||
assert_equals(nav.taintEnabled(), false);
|
||||
assert_equals(nav.appName, "Netscape");
|
||||
assert_equals(nav.appCodeName, "Mozilla");
|
||||
assert_equals(nav.platform, "");
|
||||
assert_equals(nav.appVersion, "4.0");
|
||||
});
|
||||
}, "navigator");
|
||||
|
||||
|
||||
test(function() {
|
||||
assert_equals(navigator.platform, "Linux");
|
||||
}, "navigator.platform linux");
|
||||
|
||||
test(function() {
|
||||
assert_equals(navigator.platform, "Mac");
|
||||
}, "navigator.platform mac");
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue