Title: [179205] trunk/LayoutTests
Revision
179205
Author
[email protected]
Date
2015-01-27 12:50:38 -0800 (Tue, 27 Jan 2015)

Log Message

Import the layout test style-sharing-type-and-readonly.html from blink
https://bugs.webkit.org/show_bug.cgi?id=125280

Reviewed by Sergio Villar Senin.

I fixed the bug a while ago but having one more test seems valuable.
This test is from blink: https://codereview.chromium.org/27033011
by Elliott Sprehn.

* fast/css/style-sharing-type-and-readonly-expected.txt: Added.
* fast/css/style-sharing-type-and-readonly.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (179204 => 179205)


--- trunk/LayoutTests/ChangeLog	2015-01-27 20:46:34 UTC (rev 179204)
+++ trunk/LayoutTests/ChangeLog	2015-01-27 20:50:38 UTC (rev 179205)
@@ -1,5 +1,19 @@
 2015-01-27  Benjamin Poulain  <[email protected]>
 
+        Import the layout test style-sharing-type-and-readonly.html from blink
+        https://bugs.webkit.org/show_bug.cgi?id=125280
+
+        Reviewed by Sergio Villar Senin.
+
+        I fixed the bug a while ago but having one more test seems valuable.
+        This test is from blink: https://codereview.chromium.org/27033011
+        by Elliott Sprehn.
+
+        * fast/css/style-sharing-type-and-readonly-expected.txt: Added.
+        * fast/css/style-sharing-type-and-readonly.html: Added.
+
+2015-01-27  Benjamin Poulain  <[email protected]>
+
         Import some extra tests for r179132
         https://bugs.webkit.org/show_bug.cgi?id=140930
 

Added: trunk/LayoutTests/fast/css/style-sharing-type-and-readonly-expected.txt (0 => 179205)


--- trunk/LayoutTests/fast/css/style-sharing-type-and-readonly-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/css/style-sharing-type-and-readonly-expected.txt	2015-01-27 20:50:38 UTC (rev 179205)
@@ -0,0 +1,14 @@
+Make sure special case style sharing for readonly and type attributes works.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS getComputedStyle(document.querySelector("[black]")).color is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.querySelector("[readonly]")).color is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelector("[type]")).color is "rgb(0, 0, 255)"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Black
+Red
+Blue

Added: trunk/LayoutTests/fast/css/style-sharing-type-and-readonly.html (0 => 179205)


--- trunk/LayoutTests/fast/css/style-sharing-type-and-readonly.html	                        (rev 0)
+++ trunk/LayoutTests/fast/css/style-sharing-type-and-readonly.html	2015-01-27 20:50:38 UTC (rev 179205)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+
+<script src=""
+
+<style>
+  div[readonly="red"] {
+    color: red;
+  }
+  div[type="blue"] {
+    color: blue;
+  }
+</style>
+
+<div black>Black</div>
+<div readonly="red">Red</div>
+<div type="blue">Blue</div>
+
+<script>
+description("Make sure special case style sharing for readonly and type attributes works.");
+
+shouldBe('getComputedStyle(document.querySelector("[black]")).color','"rgb(0, 0, 0)"');
+shouldBe('getComputedStyle(document.querySelector("[readonly]")).color','"rgb(255, 0, 0)"');
+shouldBe('getComputedStyle(document.querySelector("[type]")).color','"rgb(0, 0, 255)"');
+</script>
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to