mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
48
tests/wpt/web-platform-tests/FileAPI/historical.html
Normal file
48
tests/wpt/web-platform-tests/FileAPI/historical.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Historical features</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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() {
|
||||
var reader = new FileReader();
|
||||
assert_false('readAsBinaryString' in reader, 'should not be in reader');
|
||||
assert_equals(reader.readAsBinaryString, undefined,
|
||||
'should be undefined on getting')
|
||||
}, 'FileReader should not support readAsBinaryString');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue