Bug 1346047 - Enable chrome style system mochitests and run style system mochitests on e10s. r?glob
MozReview-Commit-ID: 9Vj3mZL3IhJ
--- a/layout/style/test/browser.ini
+++ b/layout/style/test/browser.ini
@@ -1,9 +1,8 @@
[DEFAULT]
support-files =
bug453896_iframe.html
media_queries_iframe.html
newtab_share_rule_processors.html
[browser_bug453896.js]
[browser_newtab_share_rule_processors.js]
-skip-if = stylo # bug 1290224
--- a/layout/style/test/chrome/chrome.ini
+++ b/layout/style/test/chrome/chrome.ini
@@ -15,9 +15,8 @@ support-files =
[test_bug1160724.xul]
[test_bug535806.xul]
[test_display_mode.html]
tags = fullscreen
[test_display_mode_reflow.html]
tags = fullscreen
[test_hover.html]
[test_moz_document_rules.html]
-skip-if = stylo # bug 1290224
--- a/layout/style/test/moz.build
+++ b/layout/style/test/moz.build
@@ -114,16 +114,22 @@ TEST_HARNESS_FILES.testing.mochitest.tes
'/layout/reftests/svg/pseudo-classes-02-ref.svg',
'/layout/reftests/svg/pseudo-classes-02.svg',
]
if CONFIG['MOZ_STYLO']:
TEST_HARNESS_FILES.testing.mochitest.tests.layout.style.test += [
'stylo-failures.md',
]
+ TEST_HARNESS_FILES.testing.mochitest.chrome.layout.style.test += [
+ 'stylo-failures.md',
+ ]
+ # TEST_HARNESS_FILES.testing.mochitest.browser.layout.style.test += [
+ # 'stylo-failures.md',
+ # ]
DEFINES['MOZILLA_INTERNAL_API'] = True
if CONFIG['MOZ_ENABLE_MASK_AS_SHORTHAND']:
HOST_DEFINES['MOZ_ENABLE_MASK_AS_SHORTHAND'] = True
if CONFIG['COMPILE_ENVIRONMENT']:
GENERATED_FILES += ['css_properties.js']
GENERATED_FILES['css_properties.js'].script = 'gen-css-properties.py'
--- a/layout/style/test/stylo-failures.md
+++ b/layout/style/test/stylo-failures.md
@@ -30,16 +30,19 @@ Any line which doesn't follow the format
* test_acid3_test46.html: @media support [13]
* test_bug1089417.html [1]
* test_bug418986-2.html: matchMedia support [3]
* test_bug453896_deck.html: <style media> support [8]
* test_media_queries.html [1]
* test_media_queries_dynamic.html [17]
* test_media_queries_dynamic_xbl.html [2]
* test_webkit_device_pixel_ratio.html: -webkit-device-pixel-ratio [3]
+ * browser_bug453896.js [8]
+ * test_display_mode.html [7]
+ * test_display_mode_reflow.html [2]
* test_all_shorthand.html: all shorthand servo/servo#15055 [*]
* Animation support:
* test_animations.html [277]
* test_animations_async_tests.html [2]
* test_animations_dynamic_changes.html [1]
* test_bug716226.html [1]
* test_flexbox_flex_grow_and_shrink.html [8]
* OMTA
@@ -500,20 +503,23 @@ Any line which doesn't follow the format
* test_pseudoelement_parsing.html: support parsing some pseudo-classes on some pseudo-elements [5]
* Unit should be preserved after parsing servo/servo#15346
* test_units_length.html [5]
* test_units_time.html [1]
* insertRule / deleteRule don't work bug 1336863
* test_rule_insertion.html [16]
* @-moz-document support
* test_rule_serialization.html [2]
+ * test_moz_document_rules.html [13]
* getComputedStyle style doesn't contain custom properties bug 1336891
* test_variable_serialization_computed.html [36]
* test_variables.html `custom property name` [2]
* test_css_supports.html: issues around @supports syntax servo/servo#15482 [8]
+* test_author_specified_style.html: support serializing color as author specified [33]
+* browser_newtab_share_rule_processors.js: agent style sheet sharing [1]
## Assertions
* Content glue not implemented
* assertion in frame constructor bug 1324704
* test_rule_insertion.html asserts [1]
* assertion in computed style bug 1337635
* test_value_cloning.html asserts [12]
--- a/taskcluster/ci/test/test-sets.yml
+++ b/taskcluster/ci/test/test-sets.yml
@@ -68,16 +68,17 @@ talos:
##
# Limited test sets for specific platforms
stylo-tests:
- cppunit
- crashtest
- reftest-stylo
- mochitest-style
+ - mochitest-chrome-style
qr-tests:
- cppunit
- crashtest
- gtest
- jittest
- jsreftest
- mochitest-a11y
--- a/taskcluster/ci/test/tests.yml
+++ b/taskcluster/ci/test/tests.yml
@@ -908,35 +908,57 @@ mochitest-webgl:
linux.*:
- unittests/linux_unittest.py
- remove_executables.py
extra-options:
- --mochitest-suite=mochitest-gl
mochitest-style:
description: "Mochitest plain run for style system"
- suite: mochitest/mochitest-style
+ suite: mochitest/plain-style
treeherder-symbol: tc-M(s)
loopback-video: true
- e10s: false
+ e10s: both
run-on-projects:
by-test-platform:
linux64-stylo/.*: [ 'stylo', 'autoland', 'mozilla-inbound', 'mozilla-central', 'try' ]
default: ['all']
mozharness:
mochitest-flavor: plain
script: desktop_unittest.py
no-read-buildbot-config: true
config:
by-test-platform:
default:
- unittests/linux_unittest.py
- remove_executables.py
extra-options:
- - --mochitest-suite=mochitest-style
+ - --mochitest-suite=plain-style
+
+mochitest-chrome-style:
+ description: "Mochitest chrome run for style system"
+ suite: mochitest/chrome-style
+ treeherder-symbol: tc-M(cs)
+ loopback-video: true
+ run-on-projects:
+ by-test-platform:
+ linux64-stylo/.*: [ 'stylo', 'autoland', 'mozilla-inbound', 'mozilla-central', 'try' ]
+ default: ['all']
+ e10s: false
+ mozharness:
+ mochitest-flavor: chrome
+ script: desktop_unittest.py
+ no-read-buildbot-config: true
+ config:
+ by-test-platform:
+ default:
+ - unittests/linux_unittest.py
+ - remove_executables.py
+ extra-options:
+ - --mochitest-suite=chrome-style
reftest:
description: "Reftest run"
suite: reftest/reftest
treeherder-symbol: tc-R(R)
docker-image: {"in-tree": "desktop1604-test"}
run-on-projects:
by-test-platform:
--- a/testing/mozharness/configs/unittests/linux_unittest.py
+++ b/testing/mozharness/configs/unittests/linux_unittest.py
@@ -199,17 +199,18 @@ config = {
"mochitest-gl": ["--subsuite=webgl"],
"mochitest-devtools-chrome": ["--flavor=browser", "--subsuite=devtools"],
"mochitest-devtools-chrome-chunked": ["--flavor=browser", "--subsuite=devtools", "--chunk-by-runtime"],
"mochitest-devtools-chrome-coverage": ["--flavor=browser", "--subsuite=devtools", "--chunk-by-runtime", "--timeout=1200"],
"jetpack-package": ["--flavor=jetpack-package"],
"jetpack-package-clipboard": ["--flavor=jetpack-package", "--subsuite=clipboard"],
"jetpack-addon": ["--flavor=jetpack-addon"],
"a11y": ["--flavor=a11y"],
- "mochitest-style": ["--disable-e10s", "--failure-pattern-file=stylo-failures.md", "layout/style/test"],
+ "plain-style": ["--failure-pattern-file=stylo-failures.md", "layout/style/test"],
+ "chrome-style": ["--flavor=chrome", "--failure-pattern-file=../stylo-failures.md", "layout/style/test/chrome"],
},
# local reftest suites
"all_reftest_suites": {
"crashtest": {
"options": ["--suite=crashtest"],
"tests": ["tests/reftest/tests/testing/crashtest/crashtests.list"]
},
"jsreftest": {