Bug 1374872 - Disable tests involving web components for stylo. r=wchen

MozReview-Commit-ID: JWA210RkpAW

--HG--
extra : rebase_source : cd2a4ed75b43d500bf3a6e1e49eccb1bd38ed777
This commit is contained in:
Xidorn Quan 2017-06-21 14:51:37 +10:00
Родитель 4b822dd9f0
Коммит 4a92d308fc
7 изменённых файлов: 68 добавлений и 29 удалений

Просмотреть файл

@ -14,3 +14,4 @@ skip-if = buildapp == 'mulet'
skip-if = buildapp == 'mulet'
[test_canvas.html]
[test_shadowroot.html]
skip-if = stylo # bug 1293844

Просмотреть файл

@ -588,7 +588,9 @@ skip-if = toolkit == 'android' #bug 687032
[test_bug999456.html]
[test_bug1022229.html]
[test_bug1025933.html]
skip-if = stylo # bug 1293844
[test_bug1037687.html]
skip-if = stylo # bug 1293844
[test_bug1043106.html]
[test_bug1057176.html]
[test_bug1060938.html]

Просмотреть файл

@ -606,6 +606,12 @@ function testExpandos() {
}
function testOutsideShadowDOM() {
if (!div.createShadowRoot) {
todo(false, "Skipping testOutsideShadowDOM and testInsideShadowDOM " +
"because createShadowRoot is not supported");
then(testMarquee);
return;
}
var m = new M(function(records, observer) {
is(records.length, 1);
is(records[0].type, "attributes", "Should have got attributes");

Просмотреть файл

@ -136,11 +136,14 @@ support-files = bug1017086_inner.html
[test_bug1017086_enable.html]
support-files = bug1017086_inner.html
[test_bug1079236.html]
skip-if = stylo # bug 1293844
[test_bug1145910.html]
skip-if = stylo # bug 1293844
[test_bug1150308.html]
skip-if = stylo # bug 1293844
[test_bug1248459.html]
[test_bug1264380.html]
run-if = (e10s && os != "win") # Bug 1270043, crash at windows platforms; Bug1264380 comment 20, nsDragService::InvokeDragSessionImpl behaves differently among platform implementations in non-e10s mode which prevents us to check the validity of nsIDragService::getCurrentSession() consistently via synthesize mouse clicks in non-e10s mode.
run-if = (e10s && os != "win" && !stylo) # Bug 1270043, crash at windows platforms; Bug1264380 comment 20, nsDragService::InvokeDragSessionImpl behaves differently among platform implementations in non-e10s mode which prevents us to check the validity of nsIDragService::getCurrentSession() consistently via synthesize mouse clicks in non-e10s mode. bug 1293844 for stylo.
[test_bug1327798.html]
subsuite = clipboard
[test_clickevent_on_input.html]

Просмотреть файл

@ -412,7 +412,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLCollection",
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLContentElement",
{name: "HTMLContentElement", stylo: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLDataElement",
// IMPORTANT: Do not change this list without review from a DOM peer!
@ -510,7 +510,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLSelectElement",
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLShadowElement",
{name: "HTMLShadowElement", stylo: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
"HTMLSourceElement",
// IMPORTANT: Do not change this list without review from a DOM peer!
@ -840,7 +840,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ScopedCredentialInfo", disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
"ShadowRoot", // Bogus, but the test harness forces it on. See bug 1159768.
{name: "ShadowRoot", stylo: false}, // Bogus, but the test harness forces it on. See bug 1159768.
// IMPORTANT: Do not change this list without review from a DOM peer!
"SharedWorker",
// IMPORTANT: Do not change this list without review from a DOM peer!
@ -1296,6 +1296,7 @@ function createInterfaceMap(isXBLScope) {
var isWindows = /Windows/.test(navigator.oscpu);
var isAndroid = navigator.userAgent.includes("Android");
var isLinux = /Linux/.test(navigator.oscpu) && !isAndroid;
var isStylo = SpecialPowers.DOMWindowUtils.isStyledByServo;
var isSecureContext = window.isSecureContext;
var interfaceMap = {};
@ -1316,6 +1317,7 @@ function createInterfaceMap(isXBLScope) {
(entry.mac === !isMac) ||
(entry.linux === !isLinux) ||
(entry.android === !isAndroid && !entry.nightlyAndroid) ||
(entry.stylo === !isStylo) ||
(entry.release === !isRelease) ||
(entry.isSecureContext === !isSecureContext) ||
entry.disabled) {

Просмотреть файл

@ -6,8 +6,10 @@ support-files =
[test_bug900724.html]
[test_bug1017896.html]
[test_bug1176757.html]
skip-if = stylo # bug 1293844
[test_bug1276240.html]
[test_content_element.html]
skip-if = stylo # bug 1293844
[test_custom_element_adopt_callbacks.html]
[test_custom_element_callback_innerhtml.html]
[test_custom_element_clone_callbacks.html]
@ -19,17 +21,26 @@ support-files =
htmlconstructor_builtin_tests.js
[test_custom_element_import_node_created_callback.html]
[test_custom_element_in_shadow.html]
skip-if = stylo # bug 1293844
[test_custom_element_register_invalid_callbacks.html]
[test_custom_element_get.html]
[test_custom_element_when_defined.html]
[test_nested_content_element.html]
skip-if = stylo # bug 1293844
[test_dest_insertion_points.html]
skip-if = stylo # bug 1293844
[test_dest_insertion_points_shadow.html]
skip-if = stylo # bug 1293844
[test_fallback_dest_insertion_points.html]
skip-if = stylo # bug 1293844
[test_detached_style.html]
skip-if = stylo # bug 1293844
[test_dynamic_content_element_matching.html]
skip-if = stylo # bug 1293844
[test_document_adoptnode.html]
skip-if = stylo # bug 1293844
[test_document_importnode.html]
skip-if = stylo # bug 1293844
[test_document_register.html]
[test_document_register_base_queue.html]
[test_document_register_lifecycle.html]
@ -37,19 +48,31 @@ support-files =
[test_document_register_stack.html]
[test_document_shared_registry.html]
[test_event_dispatch.html]
skip-if = stylo # bug 1293844
[test_event_retarget.html]
skip-if = stylo # bug 1293844
[test_event_stopping.html]
skip-if = stylo # bug 1293844
[test_template.html]
[test_template_xhtml.html]
[test_template_custom_elements.html]
[test_shadowroot.html]
skip-if = stylo # bug 1293844
[test_shadowroot_inert_element.html]
skip-if = stylo # bug 1293844
[test_shadowroot_host.html]
skip-if = stylo # bug 1293844
[test_shadowroot_style.html]
skip-if = stylo # bug 1293844
[test_shadowroot_style_multiple_shadow.html]
skip-if = stylo # bug 1293844
[test_shadowroot_style_order.html]
skip-if = stylo # bug 1293844
[test_shadowroot_youngershadowroot.html]
skip-if = stylo # bug 1293844
[test_style_fallback_content.html]
skip-if = stylo # bug 1293844
[test_unresolved_pseudo_class.html]
[test_link_prefetch.html]
[test_bug1269155.html]
[test_bug1269155.html]
skip-if = stylo # bug 1293844

Просмотреть файл

@ -237,32 +237,34 @@ addLoadEvent(function() {
testFunc(walkerAnon, "previousNode", $("display"), "step back to root (anon)");
testFunc(walkerAnon, "previousNode", null, "step back past root (anon)");
var shadowdiv = document.querySelector('#test-shadow');
var shadowRoot = shadowdiv.createShadowRoot();
var h = document.createElement("header");
var c = document.createElement("content");
c.setAttribute("select", "h2");
h.appendChild(c);
shadowRoot.appendChild(h);
if (Element.prototype.createShadowRoot) {
var shadowdiv = document.querySelector('#test-shadow');
var shadowRoot = shadowdiv.createShadowRoot();
var h = document.createElement("header");
var c = document.createElement("content");
c.setAttribute("select", "h2");
h.appendChild(c);
shadowRoot.appendChild(h);
var walkerShadow =
SpecialPowers.Cc["@mozilla.org/inspector/deep-tree-walker;1"]
.createInstance(SpecialPowers.Ci.inIDeepTreeWalker);
walkerShadow.showAnonymousContent = true;
walkerShadow.init($("test-shadow"), NodeFilter.SHOW_ALL);
var c1 = walkerShadow.nextNode();
var c2 = walkerShadow.nextNode();
var c3 = walkerShadow.nextNode();
var walkerShadow =
SpecialPowers.Cc["@mozilla.org/inspector/deep-tree-walker;1"]
.createInstance(SpecialPowers.Ci.inIDeepTreeWalker);
walkerShadow.showAnonymousContent = true;
walkerShadow.init($("test-shadow"), NodeFilter.SHOW_ALL);
var c1 = walkerShadow.nextNode();
var c2 = walkerShadow.nextNode();
var c3 = walkerShadow.nextNode();
walkerShadow.currentNode = c1;
is(SpecialPowers.unwrap(walkerShadow.currentNode), h,
"Unexpected shadow element 1");
walkerShadow.currentNode = c2;
is(SpecialPowers.unwrap(walkerShadow.currentNode), $("h2"),
"Unexpected shadow element 2");
walkerShadow.currentNode = c3;
is(SpecialPowers.unwrap(walkerShadow.currentNode), $("h2").firstChild,
"Unexpected shadow element 3");
walkerShadow.currentNode = c1;
is(SpecialPowers.unwrap(walkerShadow.currentNode), h,
"Unexpected shadow element 1");
walkerShadow.currentNode = c2;
is(SpecialPowers.unwrap(walkerShadow.currentNode), $("h2"),
"Unexpected shadow element 2");
walkerShadow.currentNode = c3;
is(SpecialPowers.unwrap(walkerShadow.currentNode), $("h2").firstChild,
"Unexpected shadow element 3");
}
SimpleTest.finish();
});