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:
Shih-Chiang Chien 2016-10-28 14:26:12 +08:00
parent 3803d72b23
commit 19b68183c7
2 changed files with 7 additions and 27 deletions

View File

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

View File

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