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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html

Issue 2537193003: Make fast/filesystem/cross-filesystem-op.html insensitive to test order (Closed)
Patch Set: use template string rather than concatenation Created 4 years 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/fs-test-util.js"></script> 4 <script src="resources/fs-test-util.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('This test tries calling various filesystem functions with null argu ments.'); 8 description('This test tries calling various filesystem functions with null argu ments.');
9 9
10 function errorCallback(error) 10 function errorCallback(error)
11 { 11 {
12 debug("Error occured: " + error.name); 12 debug("Error occured: " + error.name);
13 finishJSTest(); 13 finishJSTest();
14 } 14 }
15 15
16 function successCallback(fs) 16 function successCallback(fs)
17 { 17 {
18 window.fileSystem = fs; 18 window.fileSystem = fs;
19 debug("Successfully obtained FileSystem: " + fileSystem.name); 19 debug("Successfully obtained FileSystem: " + fileSystem.name);
20 20
21 shouldThrow("fileSystem.root.moveTo(null)"); 21 shouldThrow("fileSystem.root.moveTo(null)");
22 shouldThrow("fileSystem.root.copyTo(null)"); 22 shouldThrow("fileSystem.root.copyTo(null)");
23 fileSystem.root.getFile("/test", { create: true }, function(entry) { 23 fileSystem.root.getFile("/test", { create: true }, function(entry) {
24 entry.createWriter(function(writer) { 24 entry.createWriter(function(writer) {
25 window.writer = writer; 25 window.writer = writer;
26 shouldBeNull("writer.error"); 26 shouldBeNull("writer.error");
27 shouldThrow("writer.write(null)"); 27 shouldThrow("writer.write(null)");
28 shouldBeNull("writer.error"); 28 shouldBeNull("writer.error");
29 finishJSTest(); 29 removeAllInDirectory(fileSystem.root, finishJSTest, finishJSTest);
30 }); 30 });
31 }); 31 });
32 } 32 }
33 33
34 if (window.webkitRequestFileSystem) { 34 if (window.webkitRequestFileSystem) {
35 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac k); 35 webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallbac k);
36 window.jsTestIsAsync = true; 36 window.jsTestIsAsync = true;
37 } else { 37 } else {
38 debug("This test requires FileSystem API support."); 38 debug("This test requires FileSystem API support.");
39 } 39 }
40 </script> 40 </script>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698