Adding test.
authorbzbarsky@mit.edu
Sun, 22 Jul 2007 13:30:09 -0700
changeset 3757 4558e780dfc5c36a4415c78923fd4523a4903ed6
parent 3756 399ea718f91fdfad4dab9c4b8c741b760be8cdaa
child 3758 3d7c148ba80a9c85d178bfaa7eb968036e2f44d8
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9a7pre
Adding test.
layout/reftests/bugs/120834-1-ref.html
layout/reftests/bugs/120834-1a.html
layout/reftests/bugs/120834-2-ref.html
layout/reftests/bugs/120834-2a.html
layout/reftests/bugs/120834-2b.html
layout/reftests/bugs/120834-2c.html
layout/reftests/bugs/120834-2d.html
layout/reftests/bugs/120834-2e.html
layout/reftests/bugs/120834-2f.html
layout/reftests/bugs/120834-2g.html
layout/reftests/bugs/120834-2h.html
layout/reftests/bugs/120834-2i.html
layout/reftests/bugs/120834-2j.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-1-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+</style>
+
+<body>
+<span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-1a.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+:checked + span { color: red }
+input { display: none }
+</style>
+
+<body>
+<input checked="checked" id="foo"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+</style>
+
+<body>
+<span>There should be no red</span>
+<span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2a.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+:checked + span { color: green }
+input { display: none }
+</style>
+
+<body>
+<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
+<input type="radio" checked="checked" id="foo"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2b.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+:checked + span { color: green }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").setAttribute("type", "checkbox");
+              document.getElementById("bar").setAttribute("type", "radio")'>
+<input checked="checked" id="foo"><span>There should be no red</span>
+<input checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2c.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+:checked + span { color: red }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").removeAttribute("checked");
+              document.getElementById("bar").removeAttribute("checked");'>
+<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
+<input type="radio" checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2d.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+:checked + span { color: red }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").removeAttribute("type");
+              document.getElementById("bar").removeAttribute("type");'>
+<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
+<input type="radio" checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2e.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+:checked + span { color: green }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").setAttribute("checked", "checked");
+              document.getElementById("bar").setAttribute("checked", "checked");'>
+<input type="checkbox" id="foo"><span>There should be no red</span>
+<input type="radio" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2f.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+[checked] + span { color: green }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").setAttribute("checked", "checked");
+              document.getElementById("bar").setAttribute("checked", "checked");'>
+<input type="checkbox" id="foo"><span>There should be no red</span>
+<input type="radio" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2g.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+:checked + span { color: green }
+[checked] + span { color: red ! important }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").checked = true;
+              document.getElementById("bar").checked = true;'>
+<input type="checkbox" id="foo"><span>There should be no red</span>
+<input type="radio" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2h.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+:checked + span { color: red }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").checked = false;
+              document.getElementById("bar").checked = false;'>
+<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
+<input type="radio" checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2i.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+[checked]:checked + span { color: green }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").setAttribute("checked", "checked");
+              document.getElementById("bar").setAttribute("checked", "checked");'>
+<input type="checkbox" id="foo"><span>There should be no red</span>
+<input type="radio" id="bar"><span>There should be no red</span>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/120834-2j.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: green }
+[checked]:checked + span { color: red }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").removeAttribute("checked");
+              document.getElementById("bar").removeAttribute("checked");'>
+<input type="checkbox" checked="checked" id="foo"><span>There should be no red</span>
+<input type="radio" checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -54,16 +54,27 @@ fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") ==
 != 40596-1j.html 40596-1-ref.html
 == 84400-1.html 84400-1-ref.html
 == 84400-2.html 84400-2-ref.html
 == 97777-1.html 97777-1-ref.html
 == 97777-2.html 97777-2-ref.html
 == 98223-1.html 98223-1-ref.html
 == 98223-2.html 98223-2-ref.html
 == 105030-1.html 105030-1-ref.html
+== 120834-1a.html 120834-1-ref.html
+== 120834-2a.html 120834-2-ref.html
+== 120834-2b.html 120834-2-ref.html
+== 120834-2c.html 120834-2-ref.html
+== 120834-2d.html 120834-2-ref.html
+== 120834-2e.html 120834-2-ref.html
+== 120834-2f.html 120834-2-ref.html
+== 120834-2g.html 120834-2-ref.html
+== 120834-2h.html 120834-2-ref.html
+== 120834-2i.html 120834-2-ref.html
+== 120834-2j.html 120834-2-ref.html
 == 124903-1.html 124903-1-ref.html
 == 130767-1.html 130767-1-ref.html
 == 139550-1a.html 139550-1-ref.html
 == 139550-1b.html 139550-1-ref.html
 == 142233-1.html 142233-1-ref.html
 == 144004-1.html 144004-1-ref.html
 == 144004-2.html 144004-2-ref.html
 != 144004-3.html 144004-3-ref.html