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

Side by Side Diff: LayoutTests/fast/css/remove-class-name.html

Issue 165723006: Regression test for class removal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/remove-class-name-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .b .a { background-color: red; }
5 </style>
6 <div class="b"><div class="a">You should see no red.</div></div>
7 <script>
8 description("Removing a class affected by a selector.");
9
10 document.body.offsetLeft; // force style recalc
11 document.getElementsByTagName("div")[1].className = "";
12 shouldBe("getComputedStyle(document.getElementsByTagName('div')[1], null).backgr oundColor", "'rgba(0, 0, 0, 0)'");
13 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/remove-class-name-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698