Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/readyState_initial.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>{audio,video}.readyState - default state</title>
5 <script src="../../../../../../resources/testharness.js"></script>
6 <script src="../../../../../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <p><a href="https://html.spec.whatwg.org/multipage/#dom-media-networkstate">sp ec reference</a></p>
10 <audio id="a">
11 </audio>
12 <video id="v">
13 </video>
14 <div id="log"></div>
15 <script>
16 test(function() {
17 var a = document.getElementById("a");
18 assert_equals(
19 a.readyState,
20 a.HAVE_NOTHING,
21 "audioElement.readyState should be HAVE_NOTHING to begin with");
22 }, "audio.readyState - default state");
23
24 test(function() {
25 var v = document.getElementById("v");
26 assert_equals(
27 v.readyState,
28 v.HAVE_NOTHING,
29 "videoElement.readyState should be HAVE_NOTHING to begin with");
30 }, "video.readyState - default state");
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698