Bug 712130 - Add reftest to ensure the first autofocus elements gets picked. r?bz draft
authordecltype <mozilla@decltype.org>
Wed, 10 Jan 2018 00:40:13 +0100
changeset 750528 e29c458c9d35895e9e2f59d71587aed8c065e9c4
parent 717183 ca379fcca95b1f4a3744242ea8647004b99b3507
child 750529 b3227fd8c4b8e62016b959b23031574ac7e6f0a4
push id97701
push userbmo:mozilla@decltype.org
push dateFri, 02 Feb 2018 16:04:42 +0000
reviewersbz
bugs712130
milestone59.0a1
Bug 712130 - Add reftest to ensure the first autofocus elements gets picked. r?bz MozReview-Commit-ID: 6UAUbqwVhTm
layout/reftests/bugs/712130-1-ref.html
layout/reftests/bugs/712130-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-1-ref.html
@@ -0,0 +1,5 @@
+<!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')">
+<input type="text">
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-1.html
@@ -0,0 +1,5 @@
+<!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')">
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1702,16 +1702,17 @@ skip-if(azureSkiaGL) == 670442-1.html 67
 != 691087-1.html 691087-1-ref.html
 == 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
 == 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