mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision acdb8bf3e4714528b6b5f9ff038dc80ee4fb7dcf
This commit is contained in:
parent
56a7981c9c
commit
93b883e1db
27 changed files with 1021 additions and 165 deletions
|
@ -23,7 +23,20 @@ function run_test() {
|
|||
}, "product");
|
||||
|
||||
test(function() {
|
||||
assert_false(navigator.taintEnabled());
|
||||
// See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22555
|
||||
if ("window" in self) {
|
||||
// If you identify as WebKit, taintEnabled should not exist.
|
||||
if (navigator.userAgent.indexOf("WebKit") != -1) {
|
||||
assert_false("taintEnabled" in navigator);
|
||||
}
|
||||
// Otherwise it should exist and return false.
|
||||
else {
|
||||
assert_false(navigator.taintEnabled());
|
||||
}
|
||||
} else {
|
||||
// taintEnabled should not exist in workers.
|
||||
assert_false("taintEnabled" in navigator);
|
||||
}
|
||||
}, "taintEnabled");
|
||||
|
||||
test(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue