mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
58
tests/wpt/web-platform-tests/FileAPI/historical.https.html
Normal file
58
tests/wpt/web-platform-tests/FileAPI/historical.https.html
Normal file
|
@ -0,0 +1,58 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Historical features</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
|
||||
</head>
|
||||
<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');
|
||||
|
||||
test(function() {
|
||||
assert_false('FileException' in window);
|
||||
}, '"FileException" should not be supported');
|
||||
|
||||
test(function() {
|
||||
var b = new Blob();
|
||||
var prefixes = ['op', 'moz', 'webkit', 'ms'];
|
||||
for (var i = 0; i < prefixes.length; ++i) {
|
||||
assert_false(prefixes[i]+'Slice' in b, "'"+prefixes[i]+"Slice' in b");
|
||||
assert_false(prefixes[i]+'Slice' in Blob.prototype, "'"+prefixes[i]+"Slice in Blob.prototype");
|
||||
}
|
||||
}, 'Blob should not support slice prefixed');
|
||||
|
||||
test(function() {
|
||||
var prefixes = ['', 'O', 'Moz', 'WebKit', 'MS'];
|
||||
for (var i = 0; i < prefixes.length; ++i) {
|
||||
assert_false(prefixes[i]+'BlobBuilder' in window, prefixes[i]+'BlobBuilder');
|
||||
}
|
||||
}, 'BlobBuilder should not be supported.');
|
||||
|
||||
test(function() {
|
||||
assert_false('createFor' in URL);
|
||||
}, 'createFor method should not be supported');
|
||||
|
||||
test(function() {
|
||||
var b = new Blob();
|
||||
assert_false('close' in b, 'close in b');
|
||||
assert_false('close' in Blob.prototype, 'close in Blob.prototype');
|
||||
assert_false('isClosed' in b, 'isClosed in b');
|
||||
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');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue