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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-fragment-into-document.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 <title>NOT invoking resource selection by inserting document fragment into a doc ument</title>
3 <script src="../../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../../resources/testharnessreport.js"></script>
5 <div id=log></div>
6 <script>
7 var v;
8 var t = async_test(function(t) {
9 v = document.createElement('video');
10 var fragment = document.createDocumentFragment();
11 fragment.appendChild(v);
12 assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after fragment.ap pendChild(v)');
13 document.body.appendChild(fragment);
14 assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after document.bo dy.appendChild(fragment)');
15 });
16 </script>
17 <script>
18 t.step(function() {
19 assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate scrip t');
20 t.done();
21 });
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698