Bug 1291971 - Part 0, remove deprecated test case for presentation API and correct manifest. r=jgraham draft
authorShih-Chiang Chien <schien@mozilla.com>
Fri, 28 Oct 2016 11:03:05 +0800
changeset 430811 b1d9c28147c773cd6a4ba28cedb1518f8b627845
parent 430552 10a2b6ebcd44a3516673f51da14b760de7fd3bc0
child 430812 eca8bec6b6200247fbc9c743c13822f02373cc3d
push id33907
push userschien@mozilla.com
push dateFri, 28 Oct 2016 06:37:18 +0000
reviewersjgraham
bugs1291971
milestone52.0a1
Bug 1291971 - Part 0, remove deprecated test case for presentation API and correct manifest. r=jgraham MozReview-Commit-ID: LaFbOvPz0dr
testing/web-platform/meta/MANIFEST.json
testing/web-platform/meta/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html.ini
testing/web-platform/meta/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html.ini
testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error-manual.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -1433,18 +1433,22 @@
         "path": "presentation-api/controlling-ua/reconnectToPresentation_error-manual.html",
         "url": "/presentation-api/controlling-ua/reconnectToPresentation_error-manual.html"
       },
       {
         "path": "presentation-api/controlling-ua/reconnectToPresentation_success-manual.html",
         "url": "/presentation-api/controlling-ua/reconnectToPresentation_success-manual.html"
       },
       {
-        "path": "presentation-api/controlling-ua/startNewPresentation_error-manual.html",
-        "url": "/presentation-api/controlling-ua/startNewPresentation_error-manual.html"
+        "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html",
+        "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html"
+      },
+      {
+        "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html",
+        "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html"
       },
       {
         "path": "presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html",
         "url": "/presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html"
       },
       {
         "path": "presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html",
         "url": "/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html"
@@ -24659,24 +24663,16 @@
         "path": "presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html",
         "url": "/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html"
       },
       {
         "path": "presentation-api/controlling-ua/startNewPresentation_error.html",
         "url": "/presentation-api/controlling-ua/startNewPresentation_error.html"
       },
       {
-        "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html",
-        "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html"
-      },
-      {
-        "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html",
-        "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html"
-      },
-      {
         "path": "presentation-api/receiving-ua/idlharness.html",
         "url": "/presentation-api/receiving-ua/idlharness.html"
       },
       {
         "path": "progress-events/constructor.html",
         "url": "/progress-events/constructor.html"
       },
       {
@@ -38445,28 +38441,16 @@
             "url": "/html/browsers/windows/noreferrer-cross-origin-close-manual.sub.html"
           }
         ],
         "mediacapture-streams/MediaStream-id-manual.https.html": [
           {
             "path": "mediacapture-streams/MediaStream-id-manual.https.html",
             "url": "/mediacapture-streams/MediaStream-id-manual.https.html"
           }
-        ],
-        "presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html": [
-          {
-            "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html",
-            "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html"
-          }
-        ],
-        "presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html": [
-          {
-            "path": "presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html",
-            "url": "/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html"
-          }
         ]
       },
       "reftest": {
         "html/semantics/grouping-content/the-ol-element/reversed-1e.html": [
           {
             "path": "html/semantics/grouping-content/the-ol-element/reversed-1e.html",
             "references": [
               [
deleted file mode 100644
--- a/testing/web-platform/meta/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[startNewPresentation_mixedcontent-manual.https.html]
-  type: testharness
-  expected: TIMEOUT
deleted file mode 100644
--- a/testing/web-platform/meta/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[startNewPresentation_mixedcontent_multiple-manual.https.html]
-  type: testharness
-  expected: TIMEOUT
deleted file mode 100644
--- a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error-manual.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>Presentation API, start new presentation tests for Controlling User Agent (error - manual test)</title>
-<link rel="author" title="Marius Wessel" 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>
-
-<p>Click the button below and abort the selection for an device, to start the manual test.</p>
-<button id="presentBtn" onclick="startPresentation()">Start Presentation Test</button>
-
-<script>
-    // ----------
-    // DOM Object
-    // ----------
-    var presentBtn = document.getElementById("presentBtn");
-
-    // ------------
-    // Request init
-    // ------------
-    var validUnixDate = new Date().getTime() + String(Math.floor(Math.random() * 1e5)),
-            validPresURL = '../receiving-ua/idlharness.html#__castAppId__=2334D33A/__castClientId__=' + validUnixDate,
-            request = new PresentationRequest(validPresURL);
-
-    // -------------------------------------------
-    // Start New Presentation Test (error) - begin
-    // -------------------------------------------
-    var startPresentation = function () {
-        promise_test(function () {
-            return request.start()
-                    .catch(function (err) {
-
-                        test(function () {
-                            assert_true(err.code == 20, 'The error code is equal to 20.');
-                        }, 'Check, if the error code is correct.')
-
-                        test(function () {
-                            assert_true(err.message === 'Dialog closed.', 'The error message is equal to "Dialog closed."');
-                        }, 'Check, if the error message is correct.')
-
-                        assert_true(err.name === 'AbortError', 'The error name is AbortError.');
-
-                    });
-        }, "The starting process for the presentation has been aborted.");
-    }
-    // -----------------------------------------
-    // Start New Presentation Test (error) - end
-    // -----------------------------------------
-</script>
-