Bug 1421676 - Remove duplicated WebDriver WebIDL test. r=maja_zf

This test is duplicated in
testing/web-platform/tests/webdriver/tests/interface.html.

MozReview-Commit-ID: 1zybuuzOBmJ

--HG--
extra : rebase_source : 15eed42f67ee827bdcd3c33e1b25b56779889853
This commit is contained in:
Andreas Tolfsen 2017-11-29 16:35:33 +00:00
Родитель 31200b6393
Коммит e3b47792ff
2 изменённых файлов: 0 добавлений и 50 удалений

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

@ -348546,12 +348546,6 @@
{}
]
],
"webdriver/interface/interface.html": [
[
"/webdriver/interface/interface.html",
{}
]
],
"webdriver/tests/interface.html": [
[
"/webdriver/tests/interface.html",
@ -576417,10 +576411,6 @@
"185acb69e9516e0564e16bf7d7f8dc2a4c48d3c7",
"support"
],
"webdriver/interface/interface.html": [
"aa92a3a3ad1ea2a502fbf1de6ab0d5061752c8f8",
"testharness"
],
"webdriver/tests/__init__.py": [
"da39a3ee5e6b4b0d3255bfef95601890afd80709",
"support"

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

@ -1,40 +0,0 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<script type=text/plain class=untested>
[Exposed=Window]
interface Navigator {
// objects implementing this interface also implement the interfaces given below
};
</script>
<script type=text/plain>
Navigator implements NavigatorAutomationInformation;
[NoInterfaceObject,
Exposed=(Window)]
interface NavigatorAutomationInformation {
readonly attribute boolean webdriver;
// always returns true
};
</script>
<script>
"use strict";
if ("webdriver" in navigator) {
test(() => assert_true(navigator.webdriver), "navigator.webdriver is always true");
var idlArray = new IdlArray();
[].forEach.call(document.querySelectorAll("script[type=text\\/plain]"), function(node) {
if (node.className == "untested") {
idlArray.add_untested_idls(node.textContent);
} else {
idlArray.add_idls(node.textContent);
}
});
idlArray.test();
} else {
done();
}
</script>