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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-baseURI.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Node.baseURI</title> 2 <title>Node.baseURI</title>
3 <script src="../../../../resources/testharness.js"></script> 3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script> 4 <script src="../../../../resources/testharnessreport.js"></script>
5 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var element = document.createElement("div"); 8 var element = document.createElement("div");
9 document.body.appendChild(element); 9 document.body.appendChild(element);
10 assert_equals(element.baseURI, document.URL); 10 assert_equals(element.baseURI, document.URL);
(...skipping 12 matching lines...) Expand all
23 }, "For elements belonging to document fragments, baseURI should be document url ") 23 }, "For elements belonging to document fragments, baseURI should be document url ")
24 24
25 test(function() { 25 test(function() {
26 var fragment = document.createDocumentFragment(); 26 var fragment = document.createDocumentFragment();
27 var element = document.createElement("div"); 27 var element = document.createElement("div");
28 fragment.appendChild(element); 28 fragment.appendChild(element);
29 document.body.appendChild(fragment); 29 document.body.appendChild(fragment);
30 assert_equals(element.baseURI, document.URL) 30 assert_equals(element.baseURI, document.URL)
31 }, "After inserting fragment into document, element baseURI should be document u rl") 31 }, "After inserting fragment into document, element baseURI should be document u rl")
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698