Bug 1458872 [wpt PR 10821] - File API: lastModifiedDate has been obsolete for a while, a=testonly

Automatic update from web-platform-testsFile API: lastModifiedDate has been obsolete for a while

--

wpt-commits: 95127fa5adb1d9953899561c152c518c552e4ed0
wpt-pr: 10821
This commit is contained in:
Anne van Kesteren 2018-05-03 22:38:35 +00:00 committed by James Graham
parent 579ba5826e
commit 0955d1dabd
2 changed files with 8 additions and 4 deletions

View File

@ -401641,7 +401641,7 @@
"support"
],
"FileAPI/historical.https.html": [
"e1cf63d05a0e401cc38a11d2b42efb9e8d315610",
"8a0e866521c4cbfb010260c29777f1c93101a576",
"testharness"
],
"FileAPI/idlharness-manual.html": [

View File

@ -53,9 +53,13 @@
assert_false('isClosed' in Blob.prototype, 'isClosed in Blob.prototype');
}, 'Blob.close() should not be supported');
// Only add service worker test if service workers are actually supported.
if (navigator.serviceWorker)
service_worker_test('support/historical-serviceworker.js', 'Service worker test setup');
test(() => {
const f = new File([], "");
assert_false("lastModifiedDate" in f);
assert_false("lastModifiedDate" in File.prototype);
}, "File's lastModifiedDate should not be supported");
service_worker_test('support/historical-serviceworker.js', 'Service worker test setup');
</script>
</body>
</html>