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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Document-createAttribute.html

Issue 2012333004: Fix testharness paths in imported/wpt/{dom,html}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Document.createAttribute</title> 3 <title>Document.createAttribute</title>
4 <script src=../../../../resources/testharness.js></script> 4 <script src=/resources/testharness.js></script>
5 <script src=../../../../resources/testharnessreport.js></script> 5 <script src=/resources/testharnessreport.js></script>
6 <script src=attributes.js></script> 6 <script src=attributes.js></script>
7 <script src=productions.js></script> 7 <script src=productions.js></script>
8 <div id=log> 8 <div id=log>
9 <script> 9 <script>
10 var xml_document; 10 var xml_document;
11 setup(function() { 11 setup(function() {
12 xml_document = document.implementation.createDocument(null, null, null); 12 xml_document = document.implementation.createDocument(null, null, null);
13 }); 13 });
14 14
15 invalid_names.forEach(function(name) { 15 invalid_names.forEach(function(name) {
(...skipping 18 matching lines...) Expand all
34 assert_equals(attribute.ownerElement, null); 34 assert_equals(attribute.ownerElement, null);
35 }, "HTML document.createAttribute(" + format_value(name) + ")"); 35 }, "HTML document.createAttribute(" + format_value(name) + ")");
36 36
37 test(function() { 37 test(function() {
38 var attribute = xml_document.createAttribute(name); 38 var attribute = xml_document.createAttribute(name);
39 attr_is(attribute, "", String(name), null, null, String(name)); 39 attr_is(attribute, "", String(name), null, null, String(name));
40 assert_equals(attribute.ownerElement, null); 40 assert_equals(attribute.ownerElement, null);
41 }, "XML document.createAttribute(" + format_value(name) + ")"); 41 }, "XML document.createAttribute(" + format_value(name) + ")");
42 }); 42 });
43 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698