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

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..225cbc99adeb4089849b7da60254ff313bb5a750
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-remove-token.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
tkent 2015/10/26 23:30:38 I realized fast/dom/HTMLElement/script-tests/class
tanay.c 2015/10/27 10:44:39 Done. These tests are removed. Added them to class
+<html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<script>
+description('Tests to check classList remove functionality');
+var div1 = document.createElement('div');
+div1.className = ' a b c ';
+div1.classList.remove('a');
+shouldBeEqualToString("div1.className", "b c");
+
+var div2 = document.createElement('div');
+div2.className = ' a b c ';
+div2.classList.remove('b');
+shouldBeEqualToString("div2.className", "a c");
+
+var div3 = document.createElement('div');
+div3.className = ' a b c ';
+div3.classList.remove('c');
+shouldBeEqualToString("div3.className", "a b");
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698