Bug 1291971 - Part 3, enable controller PresentationRequest_error test. r=smaug.
authorShih-Chiang Chien <schien@mozilla.com>
Fri, 28 Oct 2016 14:26:12 +0800
changeset 319941 8d072d3047b87646813a7b52fa75baa9a9ff2d47
parent 319940 1b8568fc7962066f3dbb5d59838ce7d0b1c3d5f5
child 319942 54e937ecefe8839c7ca197ac6dd1663c30a4cc52
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1291971
milestone52.0a1
Bug 1291971 - Part 3, enable controller PresentationRequest_error test. r=smaug. MozReview-Commit-ID: EvuU3Q1ui5t
testing/web-platform/meta/presentation-api/controlling-ua/PresentationRequest_error.html.ini
testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html
--- a/testing/web-platform/meta/presentation-api/controlling-ua/PresentationRequest_error.html.ini
+++ b/testing/web-platform/meta/presentation-api/controlling-ua/PresentationRequest_error.html.ini
@@ -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"]
--- a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html
+++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html
@@ -9,31 +9,25 @@
 
     test(function() {
         assert_throws(new TypeError(), function() {
             new PresentationRequest();
         });
     }, '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([]);
         });
     }, 'Call PresentationRequest constructor with an empty sequence. NotSupportedError Exception expected.');
 
     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>
\ No newline at end of file
+</script>