mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -8,17 +8,24 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<script>
|
||||
test(() => {
|
||||
let request = new PresentationRequest('presentation.html');
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with a relative presentation URL is constructed successfully.');
|
||||
test(() => {
|
||||
let request = new PresentationRequest('presentation.html');
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with a relative presentation URL is constructed successfully.');
|
||||
|
||||
request = new PresentationRequest('https://example.org/');
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with an absolute presentation URL is constructed successfully.');
|
||||
request = new PresentationRequest('https://example.org/');
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with an absolute presentation URL is constructed successfully.');
|
||||
|
||||
request = new PresentationRequest([
|
||||
'presentation.html',
|
||||
'https://example.org/presentation/'
|
||||
]);
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with an array of presentation URLs is constructed successfully.');
|
||||
});
|
||||
request = new PresentationRequest([
|
||||
'presentation.html',
|
||||
'https://example.org/presentation/'
|
||||
]);
|
||||
assert_true(request instanceof PresentationRequest, 'An instance of PresentationRequest with an array of presentation URLs is constructed successfully.');
|
||||
|
||||
request = new PresentationRequest([
|
||||
'unsupported://example.com',
|
||||
'presentation.html',
|
||||
'https://example.org/presentation/'
|
||||
]);
|
||||
assert_true(request instanceof PresentationRequest, 'An unsupported URL in an array of presentation URLs is ignored successfully.');
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue