Title: [125723] trunk/LayoutTests
- Revision
- 125723
- Author
- [email protected]
- Date
- 2012-08-15 16:43:11 -0700 (Wed, 15 Aug 2012)
Log Message
Add a layout test for :lang() selector observing dynamic changes to lang
https://bugs.webkit.org/show_bug.cgi?id=94092
Patch by Matt Falkenhagen <[email protected]> on 2012-08-15
Reviewed by Alexey Proskuryakov.
This patch adds a test that dynamic changes to the lang attribute are seen by the :lang selector.
This behavior was first added in an earlier patch (probably http://trac.webkit.org/changeset/103608)
but there was no layout test for it yet.
* fast/selectors/lang-dynamic-expected.html: Added.
* fast/selectors/lang-dynamic.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (125722 => 125723)
--- trunk/LayoutTests/ChangeLog 2012-08-15 23:38:41 UTC (rev 125722)
+++ trunk/LayoutTests/ChangeLog 2012-08-15 23:43:11 UTC (rev 125723)
@@ -1,3 +1,17 @@
+2012-08-15 Matt Falkenhagen <[email protected]>
+
+ Add a layout test for :lang() selector observing dynamic changes to lang
+ https://bugs.webkit.org/show_bug.cgi?id=94092
+
+ Reviewed by Alexey Proskuryakov.
+
+ This patch adds a test that dynamic changes to the lang attribute are seen by the :lang selector.
+ This behavior was first added in an earlier patch (probably http://trac.webkit.org/changeset/103608)
+ but there was no layout test for it yet.
+
+ * fast/selectors/lang-dynamic-expected.html: Added.
+ * fast/selectors/lang-dynamic.html: Added.
+
2012-08-15 Brady Eidson <[email protected]>
REGRESSION (125659): 4 HTMLMeterElement tests fail on Mac
Added: trunk/LayoutTests/fast/selectors/lang-dynamic-expected.html (0 => 125723)
--- trunk/LayoutTests/fast/selectors/lang-dynamic-expected.html (rev 0)
+++ trunk/LayoutTests/fast/selectors/lang-dynamic-expected.html 2012-08-15 23:43:11 UTC (rev 125723)
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<title>':lang()': dynamic changes are seen (bug 53783)</title>
+<div>
+<p id="target1" style="background: green">This line should have a green background.
+<p id="target2">This line should NOT have a green background.
+<p id="target3">This line should NOT have a green background.
+<p id="target4">This line should NOT have a green background.
+</div>
+</html>
Added: trunk/LayoutTests/fast/selectors/lang-dynamic.html (0 => 125723)
--- trunk/LayoutTests/fast/selectors/lang-dynamic.html (rev 0)
+++ trunk/LayoutTests/fast/selectors/lang-dynamic.html 2012-08-15 23:43:11 UTC (rev 125723)
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<title>':lang()': dynamic changes are seen (bug 53783)</title>
+<style>
+p:lang(x) { background: green }
+</style>
+<div>
+<p id="target1">This line should have a green background.
+<p id="target2" lang="x">This line should NOT have a green background.
+<p id="target3" lang="x">This line should NOT have a green background.
+<p id="target4" lang="x">This line should NOT have a green background.
+</div>
+<script>
+document.getElementById('target1').lang = "x";
+document.getElementById('target2').lang = "y";
+document.getElementById('target3').removeAttribute('lang');
+document.getElementById('target4').lang = "";
+</script>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes