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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
tkent 2015/10/26 03:21:02 Please add |description(what-this-tests)|.
tanay.c 2015/10/26 09:38:51 Done.
6 var div1 = document.createElement('div');
7 div1.className = ' a b c ';
8 div1.classList.remove('a');
9 shouldBe("div1.className", "'b c'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString().
tanay.c 2015/10/26 09:38:50 Done.
10
11 var div2 = document.createElement('div');
12 div2.className = ' a b c ';
13 div2.classList.remove('b');
14 shouldBe("div2.className", "'a c'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString()
tanay.c 2015/10/26 09:38:51 Done.
15
16 var div3 = document.createElement('div');
17 div3.className = ' a b c ';
18 div3.classList.remove('c');
19 shouldBe("div3.className", "'a b'");
tkent 2015/10/26 03:21:02 Use shouldBeEqualToString()
tanay.c 2015/10/26 09:38:50 Done.
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698