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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-hasAttributes.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 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title></title> 3 <title></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 <body> 6 <body>
7 7
8 <button></button> 8 <button></button>
9 <div id="foo"></div> 9 <div id="foo"></div>
10 <p data-foo=""></p> 10 <p data-foo=""></p>
(...skipping 20 matching lines...) Expand all
31 assert_equals(pWithCustomAttr.hasAttributes(), true, 'hasAttributes() on ele ment with custom attribute must return true.'); 31 assert_equals(pWithCustomAttr.hasAttributes(), true, 'hasAttributes() on ele ment with custom attribute must return true.');
32 32
33 var divWithCustomAttr = document.createElement('div'); 33 var divWithCustomAttr = document.createElement('div');
34 divWithCustomAttr.setAttribute('data-custom', 'foo'); 34 divWithCustomAttr.setAttribute('data-custom', 'foo');
35 assert_equals(divWithCustomAttr.hasAttributes(), true, 'hasAttributes() on d ynamically created element with custom attribute must return true.'); 35 assert_equals(divWithCustomAttr.hasAttributes(), true, 'hasAttributes() on d ynamically created element with custom attribute must return true.');
36 36
37 }, 'element.hasAttributes() must return true when the element has attribute.'); 37 }, 'element.hasAttributes() must return true when the element has attribute.');
38 38
39 </script> 39 </script>
40 </body> 40 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698