Bug 1452027 [wpt PR 10341] - Add some obsolete, proprietary Gecko interfaces to historical tests., a=testonly

Automatic update from web-platform-testsAdd some obsolete, proprietary Gecko interfaces to historical tests.

--

wpt-commits: 50af0bd57122303b0d34801cdc5c89c8ed11c170
wpt-pr: 10341
This commit is contained in:
Ms2ger 2018-05-01 14:48:28 +00:00 committed by James Graham
parent a9ce329e57
commit 5a20cc9a59
4 changed files with 32 additions and 13 deletions

View File

@ -400682,7 +400682,7 @@
"support"
],
"FileAPI/historical.https.html": [
"93903b4f58bc215ea2a67fc6d281593ec5ce79e9",
"e1cf63d05a0e401cc38a11d2b42efb9e8d315610",
"testharness"
],
"FileAPI/idlharness-manual.html": [
@ -400922,7 +400922,7 @@
"testharness"
],
"IndexedDB/historical.html": [
"0c4584e1b021a286445a2a9d3388ff011a1b933e",
"2a5eaca2bbe1d0c9495ab7c48560d611f60a007c",
"testharness"
],
"IndexedDB/idb-binary-key-detached.htm": [
@ -552870,7 +552870,7 @@
"testharness"
],
"dom/historical.html": [
"ccf3d9d2d8eb3e7353ecedd8a4d8ba232f9374ec",
"291d078c4424d0491aeab7524d350eab7304f989",
"testharness"
],
"dom/interface-objects.html": [

View File

@ -10,17 +10,20 @@
<body>
<div id="log"></div>
<script>
test(function() {
assert_false('toNativeLineEndings' in window);
}, '"toNativeLineEndings" should not be supported');
var removedFromWindow = [
'toNativeLineEndings',
'FileError',
'FileException',
'FileHandle',
'FileRequest',
'MutableFile',
];
test(function() {
assert_false('FileError' in window);
}, '"FileError" should not be supported');
test(function() {
assert_false('FileException' in window);
}, '"FileException" should not be supported');
removedFromWindow.forEach(function(name) {
test(function() {
assert_false(name in window);
}, '"' + name + '" should not be supported');
});
test(function() {
var b = new Blob();

View File

@ -63,4 +63,18 @@ test(function() {
// Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
assert_false('VERSION_CHANGE' in IDBTransaction);
}, '"VERSION_CHANGE" should not be supported on IDBTransaction.');
// Gecko-proprietary interfaces.
var removedFromWindow = [
'IDBFileHandle',
'IDBFileRequest',
'IDBMutableFile',
];
removedFromWindow.forEach(function(name) {
test(function() {
assert_false(name in window);
}, '"' + name + '" should not be supported');
});
</script>

View File

@ -12,12 +12,14 @@ function isInterfaceNuked(name) {
}
var nukedInterfaces = [
"DOMConfiguration",
"DOMCursor",
"DOMError",
"DOMErrorHandler",
"DOMImplementationList",
"DOMImplementationSource",
"DOMLocator",
"DOMObject",
"DOMRequest",
"DOMSettableTokenList",
"DOMUserData",
"Entity",