| Index: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/readyState_initial.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/readyState_initial.html b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/readyState_initial.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8eef420b107a46aef98ebe15d3774d2f05b7c496
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/readyState_initial.html
|
| @@ -0,0 +1,33 @@
|
| +<!doctype html>
|
| +<html>
|
| + <head>
|
| + <title>{audio,video}.readyState - default state</title>
|
| + <script src="../../../../../../resources/testharness.js"></script>
|
| + <script src="../../../../../../resources/testharnessreport.js"></script>
|
| + </head>
|
| + <body>
|
| + <p><a href="https://html.spec.whatwg.org/multipage/#dom-media-networkstate">spec reference</a></p>
|
| + <audio id="a">
|
| + </audio>
|
| + <video id="v">
|
| + </video>
|
| + <div id="log"></div>
|
| + <script>
|
| +test(function() {
|
| + var a = document.getElementById("a");
|
| + assert_equals(
|
| + a.readyState,
|
| + a.HAVE_NOTHING,
|
| + "audioElement.readyState should be HAVE_NOTHING to begin with");
|
| +}, "audio.readyState - default state");
|
| +
|
| +test(function() {
|
| + var v = document.getElementById("v");
|
| + assert_equals(
|
| + v.readyState,
|
| + v.HAVE_NOTHING,
|
| + "videoElement.readyState should be HAVE_NOTHING to begin with");
|
| +}, "video.readyState - default state");
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|