mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1291971 - Part 3, enable controller PresentationRequest_error test. r=smaug.
MozReview-Commit-ID: EvuU3Q1ui5t --HG-- extra : rebase_source : 65ed6e5c653530e2b4f8bb43628f3c60e7e997c4
This commit is contained in:
parent
3803d72b23
commit
19b68183c7
@ -1,20 +1,6 @@
|
||||
[PresentationRequest_error.html]
|
||||
type: testharness
|
||||
[Call PresentationRequest() constructor without presentation URL. TypeError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
[Call PresentationRequest() constructor with null presentation URL. TypeError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
[Call PresentationRequest constructor with null presentation URL. TypeError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
[Call PresentationRequest constructor with an empty sequence. NotSupportedError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
[Call PresentationRequest constructor with an invalid URL. SyntaxError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
[Call PresentationRequest constructor with a sequence of URLs, one of them invalid. SyntaxError Exception expected.]
|
||||
expected: FAIL
|
||||
|
||||
prefs: [dom.presentation.enabled: true,
|
||||
dom.presentation.controller.enabled: true,
|
||||
dom.presentation.discovery.enabled: true,
|
||||
dom.presentation.device.name: "Firefox"]
|
||||
|
@ -13,12 +13,6 @@
|
||||
});
|
||||
}, 'Call PresentationRequest() constructor without presentation URL. TypeError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
new PresentationRequest(null);
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with null presentation URL. TypeError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws('NotSupportedError', function() {
|
||||
new PresentationRequest([]);
|
||||
@ -27,13 +21,13 @@
|
||||
|
||||
test(function() {
|
||||
assert_throws('SyntaxError', function() {
|
||||
new PresentationRequest(':invalid');
|
||||
new PresentationRequest('http://@');
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with an invalid URL. SyntaxError Exception expected.');
|
||||
|
||||
test(function() {
|
||||
assert_throws('SyntaxError', function() {
|
||||
new PresentationRequest(['presentation.html', ':invalid']);
|
||||
new PresentationRequest(['presentation.html', 'http://@']);
|
||||
});
|
||||
}, 'Call PresentationRequest constructor with a sequence of URLs, one of them invalid. SyntaxError Exception expected.');
|
||||
</script>
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user