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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/collections/domstringmap-supported-property-names.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (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>DOMStringMap Test: Supported property names</title> 3 <title>DOMStringMap Test: Supported property names</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 <div id="log"></div> 6 <div id="log"></div>
7 7
8 <div id="edge1" data-="012">Simple</div> 8 <div id="edge1" data-="012">Simple</div>
9 9
10 <div id="edge2" data-id-="012">Simple</div> 10 <div id="edge2" data-id-="012">Simple</div>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }, "Object.getOwnPropertyNames on DOMStringMap, attribute set on dataset in JS") ; 45 }, "Object.getOwnPropertyNames on DOMStringMap, attribute set on dataset in JS") ;
46 46
47 test(function() { 47 test(function() {
48 var element = document.querySelector('#user3'); 48 var element = document.querySelector('#user3');
49 element.setAttribute("data-age", 30); 49 element.setAttribute("data-age", 30);
50 assert_array_equals(Object.getOwnPropertyNames(element.dataset), 50 assert_array_equals(Object.getOwnPropertyNames(element.dataset),
51 ['uniqueId', 'age']); 51 ['uniqueId', 'age']);
52 }, "Object.getOwnPropertyNames on DOMStringMap, attribute set on element in JS") ; 52 }, "Object.getOwnPropertyNames on DOMStringMap, attribute set on element in JS") ;
53 53
54 </script> 54 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698