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

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, 1 month 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>
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
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 description('Tests to check classList remove functionality');
7 var div1 = document.createElement('div');
8 div1.className = ' a b c ';
9 div1.classList.remove('a');
10 shouldBeEqualToString("div1.className", "b c");
11
12 var div2 = document.createElement('div');
13 div2.className = ' a b c ';
14 div2.classList.remove('b');
15 shouldBeEqualToString("div2.className", "a c");
16
17 var div3 = document.createElement('div');
18 div3.className = ' a b c ';
19 div3.classList.remove('c');
20 shouldBeEqualToString("div3.className", "a b");
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698