Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1

This commit is contained in:
WPT Sync Bot 2018-03-17 21:12:30 -04:00
parent 2f8fa32e91
commit db5631a086
381 changed files with 11610 additions and 4232 deletions

View file

@ -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>