Commit Graph

133 Commits

Author SHA1 Message Date
Geoff Brown
945ee0068f Bug 1556058 - Update test expectations for Android 7.0 reftests; r=kats
These changes are needed for consistently green runs with the new emulator with
"-gpu on".
Most changes are simple removal of fuzzy-if(geckoview) but I also needed to add
at least one new fuzzy-if.
In this configuration we can run reftests in just 2 chunks (20 minutes each on
opt/30 minutes on debug).

Differential Revision: https://phabricator.services.mozilla.com/D36258

--HG--
extra : moz-landing-system : lando
2019-06-28 17:30:48 +00:00
Kartikaya Gupta
bb51ce8530 Bug 1558712 - Adjust fuzz for frame-scrolling-attr-2.html on geckoview. r=gbrown
Depends on D34725

Differential Revision: https://phabricator.services.mozilla.com/D34727

--HG--
extra : moz-landing-system : lando
2019-06-12 15:34:57 +00:00
Kartikaya Gupta
9671e837c3 Bug 1558607 - Allow smaller fuzz for reftest on GeckoView. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D34604

--HG--
extra : moz-landing-system : lando
2019-06-11 21:20:22 +00:00
Kartikaya Gupta
97d708b2a2 Bug 1501582 - Mark geckoview failures. r=gbrown
There are a number of failures, for which I've filed separate bugs.
And then a lot of fuzziness. I manually inspected the reftest analyzer
results on try pushes to distinguish failures vs fuzziness.

Depends on D34537

Differential Revision: https://phabricator.services.mozilla.com/D34538

--HG--
extra : moz-landing-system : lando
2019-06-11 16:12:03 +00:00
Daniel Holbert
c04ba08d3e Bug 1524774: Annotate frame-scrolling-attr-2.html as having 2 slightly fuzzy pixels. (no review, test-annotation-only)
Technically Bug 1524774 only has 1 fuzzy pixel, but I'm aiming to also address
bug 1525568 which has 2 fuzzy pixels on a different platform (mac).

--HG--
extra : rebase_source : 1be608959d17bfa0de555820f1270a9ca6759163
2019-02-14 10:14:49 -08:00
Daniel Holbert
24e7757e76 Backed out changeset 6d917b008b34 (Bug 1524774) because it annotated the wrong test
--HG--
extra : rebase_source : 77f25e65cae85cb4ff2aaf7ce1c78e7c05ba1984
2019-02-14 10:12:27 -08:00
Daniel Holbert
e2429346c5 Bug 1524774: Add fuzzy annotation to allow for subtle 1px difference on scrollbar corner in reftest frame-scrolling-attr-2.html. (no review, test-manifest-tweak only)
--HG--
extra : rebase_source : 4eb0228320c856e94c9f46345965d0118bd7eed2
2019-02-13 11:49:19 -08:00
Olli Pettay
2b3aa5d961 Bug 1524031, frame-scrolling-attr-1.html fails randomly - allow some fuzzyness, r=emilio 2019-02-04 17:24:29 +02:00
Hiroyuki Ikezoe
1415d28adf Bug 1517682 - Drop layout.css.scroll-behavior.property-enabled pref. r=heycam
It was enabled by default in bug 1041833 (for desktops) and
bug 1087562 (for Fennect).

Depends on D15706

Differential Revision: https://phabricator.services.mozilla.com/D15707

--HG--
extra : moz-landing-system : lando
2019-01-04 07:21:53 +00:00
Joel Maher
6ae712cb2a Bug 1509054 - add fuzzy-if statements to allow reftests to run on new windows10 AMI image. r=kats
add fuzzy-if statements to allow reftests to run on new windows10 AMI image

Differential Revision: https://phabricator.services.mozilla.com/D12553

--HG--
extra : moz-landing-system : lando
2018-11-21 16:11:24 +00:00
Daniel Holbert
8c7f509c02 Bug 1487537: Add reftest to exercise a scenario where presence of scrollbars influences the need for scrollbars. r=bradwerth
--HG--
extra : rebase_source : 0f4929158a7539e492e13966ea3c612ed30dd345
extra : amend_source : a5c8f74d78bac31262efd7b49f4eb36a04659998
2018-09-25 11:30:45 -07:00
L. David Baron
1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

Differential Revision: https://phabricator.services.mozilla.com/D2974

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
Emilio Cobos Álvarez
48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Narcis Beleuzu
fd0b701b6f Backed out 4 changesets (bug 1417251) for reftest failures in abs-pos-non-replaced-vrl* on Windows and in box-sizing-replaced* on Android. r=backout a=backout
Backed out changeset 66d4e6df73d2 (bug 1417251)
Backed out changeset 5f8edbddf6b5 (bug 1417251)
Backed out changeset bf26cbb99b6a (bug 1417251)
Backed out changeset 2374657677b7 (bug 1417251)

--HG--
extra : amend_source : 9e00f8873f41a7aa6a98e6ccb6528e0c3c19eb05
2017-12-08 14:31:03 +02:00
Jonathan Watt
5e6b9c139d Bug 1417251, part 4 - Remove skip-if(styloVsGecko) for various reftests. r=bz
MozReview-Commit-ID: AaI2hdIbn9D
2017-11-16 12:36:08 +00:00
Kartikaya Gupta
818cfd7499 Bug 1389000 - Update reftest annotations for layers-free results. r=jrmuizel
This patch:
- adds fails-if annotations for all the reftests that were consistently failing
  with layers-free turned on.
- removes fails-if or reduces the range on fuzzy-if annotations for all
  the reftests that were producing UNEXPECTED-PASS results with
  layers-free turned on.
- adds skip-if, random-if, or fuzzy-if annotations to the reftests that
  were intermittently failing due to timeout, obvious incorrectness, or
  slight pixel differences, respectively.

MozReview-Commit-ID: A0Aknn6rnjj

--HG--
extra : rebase_source : 420d9cf43f23a5d654fa36eec69138937d13c173
2017-09-26 14:49:19 -04:00
Joel Maher
f4b8f26ddb Bug 1398910 - make reftest-no-accel run on windows 10 (hardware) instead of windows 8. r=ahal,jet 2017-09-19 11:44:07 -04:00
L. David Baron
57368ff4e7 Bug 1379334 - Make XULScrollFrame test for needing a vertical scrollbar because of the size of the horizontal scrollbar. r=dholbert
This fixes an incremental layout bug, where the number of times we
reflow the frame affects its layout.  This is because we make the
decisions about the vertical scrollbar before the horizontal scrollbar
(and, when making the decision, adjust mHelper.mScrollPort for the size
of the scrollbar).  Thus, in order to avoid a situation where reflowing
the scrollframe once leads us to have no vertical scrollbar, but
reflowing it a second time leads us to add that scrollbar, we need to
retest for the need for a vertical scrollbar after we add the horizontal
one.

(It's possible there are some other missing cases here, but this is the
one that (a) already existed in the code and (b) is needed to fix the
reftest failure on Windows that I got on bug 1308876, in
layout/reftests/text-overflow/xulscroll.html .

The reftest here shows the bug even without bug 1308876 (though I
confirmed that only by loading the test and reference in a nightly
build, not in the reftest harness).  I did test that, in combination
with bug 1308876, the test fails without the patch and passes with the
patch.

MozReview-Commit-ID: LhMi7LbmB6J
2017-07-12 19:37:11 -07:00
Kartikaya Gupta
a50da0b2c8 Bug 1375946 - Enable scroll-behaviour tests on android. r=jmaher
MozReview-Commit-ID: KGBTJbZFlxY

--HG--
extra : rebase_source : 18316ec81c9422032f2dc744cdc4b41c724e211b
2017-06-23 14:45:02 -04:00
Ting-Yu Lin
2923be5074 Bug 1290276 Part 8 - Update test expectations after implementing XBL <stylesheet> for stylo. r=heycam
Disable 461917-1.xhtml under dom/xul/crashtests/ because I cannot reproduce
it locally.

Annotate assert-if on some crashtests (bug 1370830). Other modifications are
all removal of fails-if.

MozReview-Commit-ID: 6Q2A5M5rOry

--HG--
extra : rebase_source : b282a919fcda6287fe2eaa6b139a11f2663ad578
2017-05-31 16:44:38 -07:00
Shing Lyu
5d8a5a598c Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron
MozReview-Commit-ID: 3ekoU1zg8xA

--HG--
extra : rebase_source : f62c84516f5ac0d4b4d0c876514b72fa786ec542
2017-05-25 11:26:12 +08:00
Hiroyuki Ikezoe
f50286022e Bug 1363045 - Annotate bug number for reftests which don't work because of id anchor. r=birtles
MozReview-Commit-ID: JgNcrdBNrwg

--HG--
extra : rebase_source : 43d222baaf68c0048106d3ecf9eefd4f7c92b05b
2017-05-22 14:46:26 +09:00
Nazım Can Altınova
19a0e93729 Bug 1358710 - Unprefix -moz-linear-gradient / -moz-radial-gradient in unit tests r=dholbert
MozReview-Commit-ID: J2Tn8GKfKIN

--HG--
rename : layout/reftests/css-gradients/aja-linear-2a.html => layout/reftests/css-gradients/aja-linear-2.html
extra : rebase_source : 9c1869bddf2068cf68666e0815b8f9d9424fe76a
2017-04-24 15:54:51 +03:00
Sebastian Hengst
feb6f6c577 Backed out changeset 19f0b1e8f287 (bug 1358710) for failing reftest aja-linear-2.html on OS X with e10s. r=backout
--HG--
rename : layout/reftests/css-gradients/aja-linear-2.html => layout/reftests/css-gradients/aja-linear-2a.html
2017-05-15 00:18:47 +02:00
Nazım Can Altınova
d8be7ab275 Bug 1358710 - Unprefix -moz-linear-gradient / -moz-radial-gradient in unit tests r=dholbert
MozReview-Commit-ID: J2Tn8GKfKIN

--HG--
rename : layout/reftests/css-gradients/aja-linear-2a.html => layout/reftests/css-gradients/aja-linear-2.html
extra : rebase_source : 7b1ae51a435fae3782a03046ce21474b9a149f1a
2017-04-24 15:54:51 +03:00
Daniel Holbert
b206e22623 Bug 1344398 part 3: Add reftests for dynamic changes to "overflow" on html & body elements. r=tnikkel
MozReview-Commit-ID: 8WP2qDiKpyP

--HG--
extra : rebase_source : 3be40062f6e1de2e6f8d135f7d11ba2f86e6ab01
2017-05-10 13:55:37 -07:00
Wes Kocher
8f6058b583 Backed out 3 changesets (bug 1344398) for assertion failures at Element.cpp a=backout
Backed out changeset d0e5a5ba01b5 (bug 1344398)
Backed out changeset d70f9de401d1 (bug 1344398)
Backed out changeset 647d0bb3714d (bug 1344398)

MozReview-Commit-ID: DTVWf28NcNb
2017-05-10 17:43:50 -07:00
Daniel Holbert
0a0a08d8d5 Bug 1344398 part 3: Add reftests for dynamic changes to "overflow" on html & body elements. r=tnikkel
MozReview-Commit-ID: 8WP2qDiKpyP

--HG--
extra : rebase_source : 3be40062f6e1de2e6f8d135f7d11ba2f86e6ab01
2017-05-10 13:55:37 -07:00
Hiroyuki Ikezoe
751ec1a2f7 Bug 1361632 - Adjust reftest expectation for -moz-appearance. r=bholley
MozReview-Commit-ID: 6sqyA5TCHjk

--HG--
extra : rebase_source : 4957d93a55717850594dabc2650cecf060022f75
2017-05-04 06:39:30 +09:00
Shing Lyu
435db45b79 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-28 11:15:50 +08:00
Sebastian Hengst
ceff3b0678 Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Shing Lyu
dae014d9d5 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Mason Chang
b2a25208e6 Bug 1323587. Part 2: Reftest fuzzing for updated gamma and contrast. r=lsalzman 2016-12-15 18:37:38 -08:00
Botond Ballo
1a3f01bf7e Bug 1320200 - Propagate scroll-behavior on a text input to the anonymous scrollable <div> inside it. r=tnikkel
MozReview-Commit-ID: Cur3x41wAfU

--HG--
extra : rebase_source : 0db4979a2717d54da258dbd83c6be31fdb6c1537
2016-11-25 19:39:17 -05:00
Sebastian Hengst
321efc163f Bug 1307332 - Remove B2G and Mulet annotations from reftest.list: layout/reftests/scrolling. r=dholbert
MozReview-Commit-ID: AyArFghR4S6
2016-10-09 09:51:32 +02:00
Mason Chang
43e77092c9 Bug 1007702. Enable skia on unaccelerated windows. r=lsalzman 2016-08-25 12:35:41 -07:00
Lee Salzman
ac99e35d5f Bug 1278957 - enable Skia content for Linux and Android. r=mchang
MozReview-Commit-ID: KFb81rVM0ik
2016-08-23 13:55:14 -04:00
Wes Kocher
46da1ae628 Backed out changeset cc88b920a387 (bug 1278957) for making browser_notifications.js permafail on linux64 debug a=backout CLOSED TREE 2016-08-10 15:36:45 -07:00
Lee Salzman
dfa9fefa78 Bug 1278957 - enable Skia content for Linux and Android. r=mchang
MozReview-Commit-ID: KFb81rVM0ik
2016-08-09 15:56:28 -04:00
Wes Kocher
e4976889e3 Backed out changeset 05bc24cabedf (bug 1278957) for pgo m(oth) failures 2016-08-09 11:44:12 -07:00
Lee Salzman
bf9dba5653 Bug 1278957 - enable Skia content for Linux and Android. r=mchang
MozReview-Commit-ID: KFb81rVM0ik
2016-08-09 05:33:15 -04:00
Carsten "Tomcat" Book
1315140dfb Backed out changeset 33b8617a7233 (bug 1278957) for linux pgo reftest failures 2016-08-09 09:15:40 +02:00
Lee Salzman
1881a1669c Bug 1278957 - enable Skia content for Linux and Android. r=mchang
MozReview-Commit-ID: KFb81rVM0ik
2016-08-08 14:26:26 -04:00
Markus Stange
ebb461c874 Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Markus Stange
6bb3620330 Back out bug 1012752 for causing bug 1285532 and bug 1286674.
MozReview-Commit-ID: DYZ3D4yL1eZ

--HG--
extra : source : b98df554a6f0aa154275d363163ec618189503ed
2016-07-16 17:10:08 -04:00
Markus Stange
f8e66e0cdf Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : histedit_source : 5390eeebfe9a2791d9ac8e91ec1dfec4ec7b4118
2016-06-02 15:41:51 -04:00
Mason Chang
328a9da0c1 Bug 1282626. Windows skia reftest fuzzing. r=lsalzman 2016-06-27 18:12:57 -07:00
Geoff Brown
3c73a0f0ec Bug 1257948 - More Android test manifest cleanup; r=jmaher 2016-03-22 07:22:43 -06:00
Geoff Brown
fd1e09d12b Bug 1251013 - Update AndroidVersion annotations in test manifests - reftests; r=jmaher 2016-03-17 10:00:47 -06:00
Mason Chang
b4c228baec Bug 1246213 - Skia reftest fuzzing for Skia content on OS X. r=jmuizelaar 2016-02-16 09:07:52 -08:00