mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision b382ac7192087da0a7439902e20be76ab7587ee8
This commit is contained in:
parent
3e96a322ae
commit
defee2aae0
45 changed files with 645 additions and 189 deletions
|
@ -0,0 +1,13 @@
|
|||
// META: global=window,dedicatedworker,sharedworker,serviceworker
|
||||
test(t => {
|
||||
// Test for object that's only exposed in serviceworker
|
||||
if (self.clients) {
|
||||
assert_true(self.isSecureContext);
|
||||
assert_equals(location.protocol, "https:");
|
||||
} else {
|
||||
assert_false(self.isSecureContext);
|
||||
assert_equals(location.protocol, "http:");
|
||||
}
|
||||
});
|
||||
|
||||
done();
|
Loading…
Add table
Add a link
Reference in a new issue