Bug 1321865 - Enable IntersectionObserver tests. r=jet

MozReview-Commit-ID: 19WgYHRGCat
This commit is contained in:
Tobias Schneider 2017-04-27 00:17:10 -07:00
parent d4416f2b25
commit e88372532f
3 changed files with 8 additions and 7 deletions

View File

@ -653,7 +653,7 @@ skip-if = (toolkit == 'android') # Android: Bug 775227
[test_innersize_scrollport.html]
[test_integer_attr_with_leading_zero.html]
[test_intersectionobservers.html]
skip-if = true # Track Bug 1320704
skip-if = (os == "android") # bug 1313927
[test_link_prefetch.html]
skip-if = !e10s # Track Bug 1281415
[test_link_stylesheet.html]

View File

@ -24,14 +24,11 @@ limitations under the License.
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="next()">
<body onload="onLoad()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1243846">Mozilla Bug 1243846</a>
<p id="display"></p>
<pre id="test">
<script type="application/javascript">
SpecialPowers.setIntPref("layout.visibility.min-notify-intersection-observers-interval-ms", 0);
var tests = [];
var curDescribeMsg = '';
var curItMsg = '';
@ -1242,6 +1239,10 @@ limitations under the License.
targetEl4 = null;
}
function onLoad() {
SpecialPowers.pushPrefEnv({"set": [["dom.IntersectionObserver.enabled", true]]}, next);
}
SimpleTest.waitForExplicitFinish();
</script>
</pre>

View File

@ -596,9 +596,9 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
"InstallTrigger",
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "IntersectionObserver", disabled: true},
"IntersectionObserver",
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "IntersectionObserverEntry", disabled: true},
"IntersectionObserverEntry",
// IMPORTANT: Do not change this list without review from a DOM peer!
"KeyEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!