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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html

Issue 1411123004: Handle extra whitespaces in the DOM token list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html b/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html
new file mode 100644
index 0000000000000000000000000000000000000000..30099685ecd2cff684c1705f14fb65f92ccb462e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<script>
tkent 2015/10/26 03:21:02 Please add |description(what-this-tests)|.
tanay.c 2015/10/26 09:38:51 Done.
+var div1 = document.createElement('div');
+div1.className = ' a b c ';
+div1.classList.remove('a');
+shouldBe("div1.className", "'b c'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString().
tanay.c 2015/10/26 09:38:50 Done.
+
+var div2 = document.createElement('div');
+div2.className = ' a b c ';
+div2.classList.remove('b');
+shouldBe("div2.className", "'a c'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString()
tanay.c 2015/10/26 09:38:51 Done.
+
+var div3 = document.createElement('div');
+div3.className = ' a b c ';
+div3.classList.remove('c');
+shouldBe("div3.className", "'a b'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString()
tanay.c 2015/10/26 09:38:50 Done.
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698