diff options
author | bors-servo <release+servo@mozilla.com> | 2014-04-08 10:01:24 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-04-08 10:01:24 -0400 |
commit | c02328bea1a91bc0f7d7222d9a72020d3bbb829e (patch) | |
tree | 88d6f8f27a4c9a91d1f85472aabdfb8a72b3b2dd /src | |
parent | 7541b5752642a96a9f860f4115681af211c897e1 (diff) | |
parent | 62227009b00eb4125c29570f779b6f7092b83f85 (diff) | |
download | servo-c02328bea1a91bc0f7d7222d9a72020d3bbb829e.tar.gz servo-c02328bea1a91bc0f7d7222d9a72020d3bbb829e.zip |
auto merge of #2062 : j3parker/servo/issue346-reftest, r=jdm
ref-test for #346
Diffstat (limited to 'src')
-rw-r--r-- | src/test/ref/basic.list | 1 | ||||
-rw-r--r-- | src/test/ref/setattribute_id_restyle_a.html | 12 | ||||
-rw-r--r-- | src/test/ref/setattribute_id_restyle_b.html | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ref/basic.list b/src/test/ref/basic.list index 4df86c52e8b..d59e1fb229f 100644 --- a/src/test/ref/basic.list +++ b/src/test/ref/basic.list @@ -65,3 +65,4 @@ == background_repeat_y_a.html background_repeat_y_b.html == background_repeat_none_a.html background_repeat_none_b.html == background_repeat_both_a.html background_repeat_both_b.html +== setattribute_id_restyle_a.html setattribute_id_restyle_b.html diff --git a/src/test/ref/setattribute_id_restyle_a.html b/src/test/ref/setattribute_id_restyle_a.html new file mode 100644 index 00000000000..469ce797db7 --- /dev/null +++ b/src/test/ref/setattribute_id_restyle_a.html @@ -0,0 +1,12 @@ +<style> + #foo { background-color: #FF0000; } +</style> + +<div>hello</div> +<div id="">world</div> + +<script> + var divs = document.getElementsByTagName('div'); + divs[0].setAttribute('id', 'foo'); + divs[1].setAttribute('id', 'foo'); +</script> diff --git a/src/test/ref/setattribute_id_restyle_b.html b/src/test/ref/setattribute_id_restyle_b.html new file mode 100644 index 00000000000..f16fe454c50 --- /dev/null +++ b/src/test/ref/setattribute_id_restyle_b.html @@ -0,0 +1,6 @@ +<style> + #foo { background-color: #FF0000; } +</style> + +<div id="foo">hello</div> +<div id="foo">world</div> |