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

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

Issue 1533653002: Import the baseURI test from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « third_party/WebKit/LayoutTests/W3CImportExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Node.baseURI</title>
3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 var element = document.createElement("div");
9 document.body.appendChild(element);
10 assert_equals(element.baseURI, document.URL);
11 }, "For elements belonging to document, baseURI should be document url")
12
13 test(function() {
14 var element = document.createElement("div");
15 assert_equals(element.baseURI, document.URL);
16 }, "For elements unassigned to document, baseURI should be document url")
17
18 test(function() {
19 var fragment = document.createDocumentFragment();
20 var element = document.createElement("div");
21 fragment.appendChild(element);
22 assert_equals(element.baseURI, document.URL)
23 }, "For elements belonging to document fragments, baseURI should be document url ")
24
25 test(function() {
26 var fragment = document.createDocumentFragment();
27 var element = document.createElement("div");
28 fragment.appendChild(element);
29 document.body.appendChild(fragment);
30 assert_equals(element.baseURI, document.URL)
31 }, "After inserting fragment into document, element baseURI should be document u rl")
32 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/W3CImportExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698