Bug 1054289 - Add testcase. r=smaug, a=sledru
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 29 Aug 2014 20:35:00 +0100
changeset 216661 e47ff024eec1
parent 216660 8865201cd18e
child 216662 fbc322c42d06
push id3864
push userryanvm@gmail.com
push date2014-09-04 13:00 +0000
treeherdermozilla-beta@e47ff024eec1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, sledru
bugs1054289
milestone33.0
Bug 1054289 - Add testcase. r=smaug, a=sledru
layout/reftests/scrolling/deferred-anchor2.xhtml
layout/reftests/scrolling/iframe-deferred-anchor.xhtml
layout/reftests/scrolling/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/scrolling/deferred-anchor2.xhtml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%; overflow: hidden;">
+<head/>
+<body style="margin: 0; height: 100%;">
+<iframe style="width: 100%; height: 100%; border: none;" src="iframe-deferred-anchor.xhtml"/>
+</body>
+</html>
copy from layout/reftests/scrolling/deferred-anchor-ref.xhtml
copy to layout/reftests/scrolling/iframe-deferred-anchor.xhtml
--- a/layout/reftests/scrolling/deferred-anchor-ref.xhtml
+++ b/layout/reftests/scrolling/iframe-deferred-anchor.xhtml
@@ -1,12 +1,13 @@
 <?xml version="1.0"?>
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
+<script>document.location.hash = "#d";</script>
 </head>
 <body style="margin: 0;">
 <div style="height: 50px; width: 50px; background-color: red;"/>
 <div style="height: 1000px;"/>
 <div id="d" style="height: 50px; width: 50px; background-color: green;"/>
 <div style="height: 1000px;"/>
 </body>
 </html>
--- a/layout/reftests/scrolling/reftest.list
+++ b/layout/reftests/scrolling/reftest.list
@@ -1,9 +1,10 @@
 skip-if(B2G&&browserIsRemote) HTTP == deferred-anchor.xhtml#d deferred-anchor-ref.xhtml#d
+== deferred-anchor2.xhtml deferred-anchor-ref.xhtml#d
 HTTP == fixed-1.html fixed-1.html?ref
 HTTP == fixed-opacity-1.html fixed-opacity-1.html?ref
 skip-if(B2G) HTTP == fixed-opacity-2.html fixed-opacity-2.html?ref
 skip-if(B2G) random-if(gtk2Widget) fuzzy-if(Android,3,60) HTTP == fixed-text-1.html fixed-text-1.html?ref
 HTTP == fixed-text-2.html fixed-text-2.html?ref
 random-if(Android&&!browserIsRemote) skip-if(B2G&&browserIsRemote) == iframe-border-radius.html iframe-border-radius-ref.html # bug 760269
 random-if(Android) HTTP == image-1.html image-1.html?ref
 random-if(Android&&!browserIsRemote) HTTP == opacity-mixed-scrolling-1.html opacity-mixed-scrolling-1.html?ref # bug 760269