From 0955d1dabd2dd6253ff93a678ad30264334b86e4 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 3 May 2018 22:38:35 +0000 Subject: [PATCH] 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 --- testing/web-platform/meta/MANIFEST.json | 2 +- .../web-platform/tests/FileAPI/historical.https.html | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 31a7eed8b5ae..f182a870411a 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -401641,7 +401641,7 @@ "support" ], "FileAPI/historical.https.html": [ - "e1cf63d05a0e401cc38a11d2b42efb9e8d315610", + "8a0e866521c4cbfb010260c29777f1c93101a576", "testharness" ], "FileAPI/idlharness-manual.html": [ diff --git a/testing/web-platform/tests/FileAPI/historical.https.html b/testing/web-platform/tests/FileAPI/historical.https.html index 877aed06466a..4f841f176394 100644 --- a/testing/web-platform/tests/FileAPI/historical.https.html +++ b/testing/web-platform/tests/FileAPI/historical.https.html @@ -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');