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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-removeAttributeNS.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>Element.removeAttributeNS</title> 2 <title>Element.removeAttributeNS</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 <script src="attributes.js"></script> 5 <script src="attributes.js"></script>
6 <div id="log"></div> 6 <div id="log"></div>
7 <script> 7 <script>
8 var XML = "http://www.w3.org/XML/1998/namespace" 8 var XML = "http://www.w3.org/XML/1998/namespace"
9 9
10 test(function() { 10 test(function() {
11 var el = document.createElement("foo") 11 var el = document.createElement("foo")
12 el.setAttributeNS(XML, "a:bb", "pass") 12 el.setAttributeNS(XML, "a:bb", "pass")
13 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb") 13 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
14 el.removeAttributeNS(XML, "a:bb") 14 el.removeAttributeNS(XML, "a:bb")
15 assert_equals(el.attributes.length, 1) 15 assert_equals(el.attributes.length, 1)
16 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb") 16 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
17 }, "removeAttributeNS should take a local name.") 17 }, "removeAttributeNS should take a local name.")
18 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698