Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r?bz draft
authordecltype <mozilla@decltype.org>
Wed, 10 Jan 2018 19:07:21 +0100
changeset 750529 b3227fd8c4b8e62016b959b23031574ac7e6f0a4
parent 750528 e29c458c9d35895e9e2f59d71587aed8c065e9c4
child 750530 0a02bcf6c3956e0fea5d391171c081a8aed161e9
child 754876 c44c300d35a676e7225a2765659e74a6c5162050
child 754878 c5a5ee2f4a8aa2192e167e40a34acef3ef1c92e3
push id97701
push userbmo:mozilla@decltype.org
push dateFri, 02 Feb 2018 16:04:42 +0000
reviewersbz
bugs712130
milestone59.0a1
Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r?bz MozReview-Commit-ID: 75IKOqiqBhL
layout/reftests/bugs/712130-2-ref.html
layout/reftests/bugs/712130-2.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-2-ref.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-2.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="stylesheet" href="nothing"><!-- Empty stylesheet to delay PresShell init -->
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1703,16 +1703,17 @@ skip-if(azureSkiaGL) == 670442-1.html 67
 == 691571-1.html 691571-1-ref.html
 fuzzy-if(skiaContent,1,200) == 696307-1.html 696307-1-ref.html
 fuzzy-if(skiaContent,1,550) == 696739-1.html 696739-1-ref.html
 needs-focus == 703186-1.html 703186-1-ref.html
 needs-focus == 703186-2.html 703186-2-ref.html
 needs-focus != 703186-1.html 703186-2.html
 == 711359-1.html 711359-1-ref.html
 fuzzy-if(skiaContent,1,3) needs-focus == 712130-1.html 712130-1-ref.html
+fuzzy-if(skiaContent,1,3) needs-focus == 712130-2.html 712130-2-ref.html
 == 712849-1.html 712849-1-ref.html
 == 713856-static.html  713856-ref.html
 == 713856-dynamic.html 713856-ref.html
 == 714519-1-as.html 714519-1-ref.html
 == 714519-1-q.html 714519-1-ref.html
 == 714519-2-as.html 714519-2-ref.html
 == 714519-2-q.html 714519-2-ref.html
 fuzzy-if(true,1,21) fuzzy-if(d2d,71,173) fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html # bug 773482