From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/web-platform/tests/presentation-api/OWNERS | 3 + .../web-platform/tests/presentation-api/README.md | 24 ++++ .../PresentationConnection_onclosed-manual.html | 41 +++++++ .../PresentationConnection_onconnected-manual.html | 39 +++++++ ...PresentationConnection_onterminated-manual.html | 47 ++++++++ .../controlling-ua/PresentationRequest_error.html | 33 ++++++ .../PresentationRequest_success.html | 43 +++++++ .../defaultRequest_success-manual.html | 52 +++++++++ .../controlling-ua/getAvailability.html | 83 +++++++++++++ .../getAvailability_mixedcontent.https.html | 18 +++ .../getAvailability_sandboxing_error.html | 26 +++++ .../getAvailability_sandboxing_success.html | 25 ++++ .../controlling-ua/idlharness.html | 129 +++++++++++++++++++++ .../reconnectToPresentation_error-manual.html | 36 ++++++ ...reconnectToPresentation_mixedcontent.https.html | 18 +++ .../reconnectToPresentation_sandboxing_error.html | 26 +++++ ...reconnectToPresentation_sandboxing_success.html | 25 ++++ .../reconnectToPresentation_success-manual.html | 73 ++++++++++++ .../controlling-ua/startNewPresentation_error.html | 28 +++++ ...tNewPresentation_mixedcontent-manual.https.html | 29 +++++ ...ntation_mixedcontent_multiple-manual.https.html | 32 +++++ ...artNewPresentation_sandboxing_error-manual.html | 31 +++++ ...tNewPresentation_sandboxing_success-manual.html | 31 +++++ .../startNewPresentation_success-manual.html | 59 ++++++++++ .../controlling-ua/support/iframe.html | 59 ++++++++++ .../controlling-ua/support/presentation.html | 24 ++++ .../presentation-api/receiving-ua/idlharness.html | 120 +++++++++++++++++++ 27 files changed, 1154 insertions(+) create mode 100644 testing/web-platform/tests/presentation-api/OWNERS create mode 100644 testing/web-platform/tests/presentation-api/README.md create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onclosed-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onconnected-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onterminated-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_success.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/defaultRequest_success-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/getAvailability.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_mixedcontent.https.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_error.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_success.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/idlharness.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_error-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_mixedcontent.https.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_error.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_success-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_success-manual.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/support/iframe.html create mode 100644 testing/web-platform/tests/presentation-api/controlling-ua/support/presentation.html create mode 100644 testing/web-platform/tests/presentation-api/receiving-ua/idlharness.html (limited to 'testing/web-platform/tests/presentation-api') diff --git a/testing/web-platform/tests/presentation-api/OWNERS b/testing/web-platform/tests/presentation-api/OWNERS new file mode 100644 index 000000000..47731cfab --- /dev/null +++ b/testing/web-platform/tests/presentation-api/OWNERS @@ -0,0 +1,3 @@ +@louaybassbouss +@tidoust +@zqzhang \ No newline at end of file diff --git a/testing/web-platform/tests/presentation-api/README.md b/testing/web-platform/tests/presentation-api/README.md new file mode 100644 index 000000000..77861e0e0 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/README.md @@ -0,0 +1,24 @@ +# Presentation API Tests + +This test suite is currently tracking the [Editor Draft][editor-draft] of the Presentation API. The Presentation API describes the [conformance criteria for two classes of user agents][conformance-classes] ([controlling user agent][dfn-controlling-user-agent] and [receiving user agent][dfn-receiving-user-agent]). Each of the two subfolders [controlling-ua](./controlling-ua) and [receiving-ua](./receiving-ua) contains the Presentation API tests for each class of user agents. + +## IDL Tests + +Each of the [controlling-ua](./controlling-ua) and [receiving-ua](./receiving-ua) subfolders contains a file `idlharness.html` that defines IDL tests of the Presentation API for controlling and receiving user agents. The WebIDL of the Presentation API spec is extracted from the [Editor Draft][editor-draft] by running the following JavaScript code in the Dev. console of the Browser. + +```javascript +(function(){ + var s = ""; + [].forEach.call(document.getElementsByClassName("idl"), function(idl) { + if (!idl.classList.contains("extract")) + s += idl.textContent + "\n\n"; + }); + document.body.innerHTML = '
';
+  document.body.firstChild.textContent = s;
+  })();
+```
+
+[editor-draft]: http://w3c.github.io/presentation-api/
+[conformance-classes]: http://w3c.github.io/presentation-api/#conformance-classes
+[dfn-controlling-user-agent]: http://w3c.github.io/presentation-api/#dfn-controlling-user-agent
+[dfn-receiving-user-agent]: http://w3c.github.io/presentation-api/#dfn-receiving-user-agent
\ No newline at end of file
diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onclosed-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onclosed-manual.html
new file mode 100644
index 000000000..c83f659dd
--- /dev/null
+++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onclosed-manual.html
@@ -0,0 +1,41 @@
+
+
+
+PresentationConnection.onclose
+
+
+
+
+
+

Description

+

+ This test validates that after connection close,
+ the connection state is set closed,
+ the onclose EventHandler is triggered. +

+
+

Click the button below to start the test.

+ + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onconnected-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onconnected-manual.html new file mode 100644 index 000000000..ce6b9cb2e --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onconnected-manual.html @@ -0,0 +1,39 @@ + + + +PresentationConnection.onconnect + + + + + +

Description

+

+ This test validates that after connection starts,
+ the onconnect EventHandler is triggered and connection state is connected. +

+
+

Click the button below to start the test.

+ + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onterminated-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onterminated-manual.html new file mode 100644 index 000000000..cb3204536 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationConnection_onterminated-manual.html @@ -0,0 +1,47 @@ + + + +PresentationConnection.onterminate + + + + + +

Description

+

+ This test validates that after connection terminate,
+ the connection state is set terminated,
+ the onterminate EventHandler is triggered. +

+
+

Click the button below to start the test.

+ + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html new file mode 100644 index 000000000..d6324ea56 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_error.html @@ -0,0 +1,33 @@ + + +Presentation API PresentationRequest for Controlling User Agent (Error) + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_success.html b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_success.html new file mode 100644 index 000000000..4e1570e83 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/PresentationRequest_success.html @@ -0,0 +1,43 @@ + + +Presentation API PresentationRequest for Controlling User Agent (Success) + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/defaultRequest_success-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/defaultRequest_success-manual.html new file mode 100644 index 000000000..8535d8337 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/defaultRequest_success-manual.html @@ -0,0 +1,52 @@ + + +Presentation API, testing to start a new presentation with an default request setup. (success - manual) + + + + + +

Click the button below and select the available casting device, to start the manual test.

+ + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability.html b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability.html new file mode 100644 index 000000000..de6ca2b74 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability.html @@ -0,0 +1,83 @@ + + +Presentation API - monitor screen availability tests for Controlling User Agent + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_mixedcontent.https.html b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_mixedcontent.https.html new file mode 100644 index 000000000..4e8cb1f22 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_mixedcontent.https.html @@ -0,0 +1,18 @@ + + +Calling "getAvailability" with an a priori unauthenticated URL in an HTTPS context throws a SecurityError exception. + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_error.html b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_error.html new file mode 100644 index 000000000..88cae73c0 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_error.html @@ -0,0 +1,26 @@ + + +Sandboxing: Retrieving display availability from a nested context fails when allow-presentation is not set + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_success.html b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_success.html new file mode 100644 index 000000000..daa0a0ff1 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/getAvailability_sandboxing_success.html @@ -0,0 +1,25 @@ + + +Sandboxing: Retrieving display availability from a nested context succeeds when allow-presentation is set + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/idlharness.html b/testing/web-platform/tests/presentation-api/controlling-ua/idlharness.html new file mode 100644 index 000000000..8c3268af2 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/idlharness.html @@ -0,0 +1,129 @@ + + +Presentation API IDL tests for Controlling User Agent + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_error-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_error-manual.html new file mode 100644 index 000000000..7d340e8f6 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_error-manual.html @@ -0,0 +1,36 @@ + + +Presentation API reconnect a presentation for Controlling User Agent (Error - manual test) + + + + + +

click on the button to the perfom the test

+ \ No newline at end of file diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_mixedcontent.https.html b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_mixedcontent.https.html new file mode 100644 index 000000000..b1043a103 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_mixedcontent.https.html @@ -0,0 +1,18 @@ + + +Calling "reconnect" with an a priori unauthenticated URL in an HTTPS context throws a SecurityError exception. + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_error.html b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_error.html new file mode 100644 index 000000000..c3286f55a --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_error.html @@ -0,0 +1,26 @@ + + +Sandboxing: Reconnecting a presentation from a nested context fails when allow-presentation is not set + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html new file mode 100644 index 000000000..96505aca0 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_sandboxing_success.html @@ -0,0 +1,25 @@ + + +Sandboxing: Reconnecting a presentation from a nested context succeeds when allow-presentation is set + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_success-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_success-manual.html new file mode 100644 index 000000000..f2c9ac32f --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/reconnectToPresentation_success-manual.html @@ -0,0 +1,73 @@ + + +Presentation API, reconnect to presentation tests for Controlling User Agent (success - manual test) + + + + + +
    +
  1. Start the presentation with the blue button.
  2. +
  3. After the presentation ist running successfully, disconnect the connected device.
  4. +
  5. Reconnect the device and press the green button, to start the reconnection process.
  6. +
+ + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error.html new file mode 100644 index 000000000..eea3486cd --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_error.html @@ -0,0 +1,28 @@ + + +Presentation API, start new presentation tests for Controlling User Agent (error) + + + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html new file mode 100644 index 000000000..1a0c39e82 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent-manual.https.html @@ -0,0 +1,29 @@ + + +Calling "start" with an a priori unauthenticated URL in an HTTPS context throws a SecurityError exception. + + + + + +

Click the button below to start the manual test. If prompted to select a device, please dismiss the dialog box. The test passes if a "PASS" result appears.

+ + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html new file mode 100644 index 000000000..3987de505 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_mixedcontent_multiple-manual.https.html @@ -0,0 +1,32 @@ + + +Calling "start" with a set of URLs containing an a priori unauthenticated URL in an HTTPS context throws a SecurityError exception. + + + + + +

Click the button below to start the manual test. If prompted to select a device, please dismiss the dialog box. The test passes if a "PASS" result appears.

+ + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html new file mode 100644 index 000000000..06334b000 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_error-manual.html @@ -0,0 +1,31 @@ + + +Sandboxing: starting a presentation from a nested context fails when allow-presentation is not set + + + + + + +

Click the button below to start the manual test. If prompted to select a device, please dismiss the dialog box. The test passes if a "PASS" result appears.

+ + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html new file mode 100644 index 000000000..68e037a5c --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html @@ -0,0 +1,31 @@ + + +Sandboxing: starting a presentation from a nested context succeeds when allow-presentation is set + + + + + + +

Click the button below to start the manual test. If prompted to select a device, please dismiss the dialog box. The test passes if a "PASS" result appears.

+ + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_success-manual.html b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_success-manual.html new file mode 100644 index 000000000..8e1cc7b83 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/startNewPresentation_success-manual.html @@ -0,0 +1,59 @@ + + +Presentation API, start new presentation tests for Controlling User Agent (success - manual test) + + + + + +

Click the button below and select the available casting device, to start the manual test.

+ + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/support/iframe.html b/testing/web-platform/tests/presentation-api/controlling-ua/support/iframe.html new file mode 100644 index 000000000..60f94b69d --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/support/iframe.html @@ -0,0 +1,59 @@ + + +Presentation API - controlling ua - sandboxing + + + + diff --git a/testing/web-platform/tests/presentation-api/controlling-ua/support/presentation.html b/testing/web-platform/tests/presentation-api/controlling-ua/support/presentation.html new file mode 100644 index 000000000..ea13ded4a --- /dev/null +++ b/testing/web-platform/tests/presentation-api/controlling-ua/support/presentation.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/testing/web-platform/tests/presentation-api/receiving-ua/idlharness.html b/testing/web-platform/tests/presentation-api/receiving-ua/idlharness.html new file mode 100644 index 000000000..24b0859a6 --- /dev/null +++ b/testing/web-platform/tests/presentation-api/receiving-ua/idlharness.html @@ -0,0 +1,120 @@ + + +Presentation API IDL tests for Receiving User Agent + + + + + + + + + + + + + -- cgit v1.2.3