11cb0ef41Sopenharmony_ci<!doctype html>
21cb0ef41Sopenharmony_ci<html>
31cb0ef41Sopenharmony_ci <head>
41cb0ef41Sopenharmony_ci  <meta charset="utf-8">
51cb0ef41Sopenharmony_ci  <title>Historical features</title>
61cb0ef41Sopenharmony_ci  <script src="/resources/testharness.js"></script>
71cb0ef41Sopenharmony_ci  <script src="/resources/testharnessreport.js"></script>
81cb0ef41Sopenharmony_ci  <script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
91cb0ef41Sopenharmony_ci </head>
101cb0ef41Sopenharmony_ci <body>
111cb0ef41Sopenharmony_ci  <div id="log"></div>
121cb0ef41Sopenharmony_ci  <script>
131cb0ef41Sopenharmony_ci    var removedFromWindow = [
141cb0ef41Sopenharmony_ci        'toNativeLineEndings',
151cb0ef41Sopenharmony_ci        'FileError',
161cb0ef41Sopenharmony_ci        'FileException',
171cb0ef41Sopenharmony_ci        'FileHandle',
181cb0ef41Sopenharmony_ci        'FileRequest',
191cb0ef41Sopenharmony_ci        'MutableFile',
201cb0ef41Sopenharmony_ci    ];
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ci    removedFromWindow.forEach(function(name) {
231cb0ef41Sopenharmony_ci        test(function() {
241cb0ef41Sopenharmony_ci            assert_false(name in window);
251cb0ef41Sopenharmony_ci        }, '"' + name + '" should not be supported');
261cb0ef41Sopenharmony_ci    });
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ci    test(function() {
291cb0ef41Sopenharmony_ci        var b = new Blob();
301cb0ef41Sopenharmony_ci        var prefixes = ['op', 'moz', 'webkit', 'ms'];
311cb0ef41Sopenharmony_ci        for (var i = 0; i < prefixes.length; ++i) {
321cb0ef41Sopenharmony_ci            assert_false(prefixes[i]+'Slice' in b, "'"+prefixes[i]+"Slice' in b");
331cb0ef41Sopenharmony_ci            assert_false(prefixes[i]+'Slice' in Blob.prototype, "'"+prefixes[i]+"Slice in Blob.prototype");
341cb0ef41Sopenharmony_ci        }
351cb0ef41Sopenharmony_ci    }, 'Blob should not support slice prefixed');
361cb0ef41Sopenharmony_ci
371cb0ef41Sopenharmony_ci    test(function() {
381cb0ef41Sopenharmony_ci        var prefixes = ['', 'O', 'Moz', 'WebKit', 'MS'];
391cb0ef41Sopenharmony_ci        for (var i = 0; i < prefixes.length; ++i) {
401cb0ef41Sopenharmony_ci            assert_false(prefixes[i]+'BlobBuilder' in window, prefixes[i]+'BlobBuilder');
411cb0ef41Sopenharmony_ci        }
421cb0ef41Sopenharmony_ci    }, 'BlobBuilder should not be supported.');
431cb0ef41Sopenharmony_ci
441cb0ef41Sopenharmony_ci    test(function() {
451cb0ef41Sopenharmony_ci        assert_false('createFor' in URL);
461cb0ef41Sopenharmony_ci    }, 'createFor method should not be supported');
471cb0ef41Sopenharmony_ci
481cb0ef41Sopenharmony_ci    test(function() {
491cb0ef41Sopenharmony_ci        var b = new Blob();
501cb0ef41Sopenharmony_ci        assert_false('close' in b, 'close in b');
511cb0ef41Sopenharmony_ci        assert_false('close' in Blob.prototype, 'close in Blob.prototype');
521cb0ef41Sopenharmony_ci        assert_false('isClosed' in b, 'isClosed in b');
531cb0ef41Sopenharmony_ci        assert_false('isClosed' in Blob.prototype, 'isClosed in Blob.prototype');
541cb0ef41Sopenharmony_ci    }, 'Blob.close() should not be supported');
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_ci    test(() => {
571cb0ef41Sopenharmony_ci      const f = new File([], "");
581cb0ef41Sopenharmony_ci      assert_false("lastModifiedDate" in f);
591cb0ef41Sopenharmony_ci      assert_false("lastModifiedDate" in File.prototype);
601cb0ef41Sopenharmony_ci    }, "File's lastModifiedDate should not be supported");
611cb0ef41Sopenharmony_ci
621cb0ef41Sopenharmony_ci    service_worker_test('support/historical-serviceworker.js', 'Service worker test setup');
631cb0ef41Sopenharmony_ci  </script>
641cb0ef41Sopenharmony_ci </body>
651cb0ef41Sopenharmony_ci</html>
66