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

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

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Element.removeAttributeNS</title>
3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script>
5 <script src="attributes.js"></script>
6 <div id="log"></div>
7 <script>
8 var XML = "http://www.w3.org/XML/1998/namespace"
9
10 test(function() {
11 var el = document.createElement("foo")
12 el.setAttributeNS(XML, "a:bb", "pass")
13 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
14 el.removeAttributeNS(XML, "a:bb")
15 assert_equals(el.attributes.length, 1)
16 attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
17 }, "removeAttributeNS should take a local name.")
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698