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

Side by Side Diff: LayoutTests/fast/dom/shadow/pseudo-attribute.html

Issue 187573002: Revert "Reverting custom pseudo element". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5
6 <p>This test checks pseudo attribute is exposed correctly.</p>
7
8 <pre id="console"></pre>
9
10 <script>
11 var div = document.createElement('div');
12
13 shouldBe("div.pseudo", "''");
14 shouldBe("div.getAttribute('pseudo')", "null");
15
16 div.setAttribute("pseudo", "foo");
17 shouldBe("div.pseudo", "'foo'");
18 shouldBe("div.getAttribute('pseudo')", "'foo'");
19
20 div.pseudo = "bar";
21 shouldBe("div.pseudo", "'bar'");
22 shouldBe("div.getAttribute('pseudo')", "'bar'");
23
24 div.removeAttribute('pseudo');
25 shouldBe("div.pseudo", "''");
26 shouldBe("div.getAttribute('pseudo')", "null");
27
28 // Checks pseudo accepts known pseudo-element word.
29 div.pseudo = 'first-letter';
30 shouldBe("div.pseudo", "'first-letter'");
31
32 finishJSTest();
33 </script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698