Skip to content

Commit

Permalink
Add some obsolete, proprietary Gecko interfaces to historical tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Apr 26, 2018
1 parent d799501 commit 50af0bd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
23 changes: 13 additions & 10 deletions FileAPI/historical.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@
<body>
<div id="log"></div>
<script>
test(function() {
assert_false('toNativeLineEndings' in window);
}, '"toNativeLineEndings" should not be supported');

test(function() {
assert_false('FileError' in window);
}, '"FileError" should not be supported');
var removedFromWindow = [
'toNativeLineEndings',
'FileError',
'FileException',
'FileHandle',
'FileRequest',
'MutableFile',
];

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();
Expand Down
14 changes: 14 additions & 0 deletions IndexedDB/historical.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,18 @@
// 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>
2 changes: 2 additions & 0 deletions dom/historical.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
}
var nukedInterfaces = [
"DOMConfiguration",
"DOMCursor",
"DOMError",
"DOMErrorHandler",
"DOMImplementationList",
"DOMImplementationSource",
"DOMLocator",
"DOMObject",
"DOMRequest",
"DOMSettableTokenList",
"DOMUserData",
"Entity",
Expand Down

0 comments on commit 50af0bd

Please sign in to comment.