Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Side by Side Diff: LayoutTests/imported/web-platform-tests/FileAPI/historical.html

Issue 1236713002: Import FileAPI tests from web-platform-tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh, stupid baselines Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Historical features</title>
6 <script src="../../../resources/testharness.js"></script>
7 <script src="../../../resources/testharnessreport.js"></script>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 test(function() {
13 assert_false('toNativeLineEndings' in window);
14 }, '"toNativeLineEndings" should not be supported');
15
16 test(function() {
17 assert_false('FileError' in window);
18 }, '"FileError" should not be supported');
19
20 test(function() {
21 assert_false('FileException' in window);
22 }, '"FileException" should not be supported');
23
24 test(function() {
25 var b = new Blob();
26 var prefixes = ['op', 'moz', 'webkit', 'ms'];
27 for (var i = 0; i < prefixes.length; ++i) {
28 assert_false(prefixes[i]+'Slice' in b, "'"+prefixes[i]+"Slice' in b" );
29 assert_false(prefixes[i]+'Slice' in Blob.prototype, "'"+prefixes[i]+ "Slice in Blob.prototype");
30 }
31 }, 'Blob should not support slice prefixed');
32
33 test(function() {
34 var prefixes = ['', 'O', 'Moz', 'WebKit', 'MS'];
35 for (var i = 0; i < prefixes.length; ++i) {
36 assert_false(prefixes[i]+'BlobBuilder' in window, prefixes[i]+'BlobB uilder');
37 }
38 }, 'BlobBuilder should not be supported.');
39
40 test(function() {
41 var reader = new FileReader();
42 assert_false('readAsBinaryString' in reader, 'should not be in reader');
43 assert_equals(reader.readAsBinaryString, undefined,
44 'should be undefined on getting')
45 }, 'FileReader should not support readAsBinaryString');
46 </script>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698