mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Presentation API PresentationRequest for Controlling User Agent (Error)</title>
|
||||
<link rel="author" title="Franck William Taffo" href="http://www.fokus.fraunhofer.de">
|
||||
<link rel="help" href="http://w3c.github.io/presentation-api/#dfn-controlling-user-agent">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
new PresentationRequest();
|
||||
});
|
||||
}, 'Call PresentationRequest() constructor without presentation URL. TypeError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws('NotSupportedError', function() {
|
||||
new PresentationRequest([]);
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with an empty sequence. NotSupportedError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws('SyntaxError', function() {
|
||||
new PresentationRequest('http://@');
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with an invalid URL. SyntaxError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws('SyntaxError', function() {
|
||||
new PresentationRequest(['presentation.html', 'http://@']);
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with a sequence of URLs, one of them invalid. SyntaxError Exception expected.');
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue