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

Side by Side Diff: LayoutTests/fast/filesystem/resources/file-writer-truncate-extend.js

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 if (this.importScripts) { 1 if (this.importScripts) {
2 importScripts('fs-worker-common.js'); 2 importScripts('fs-worker-common.js');
3 importScripts('../../js/resources/js-test-pre.js'); 3 importScripts('../../../resources/js-test.js');
4 importScripts('file-writer-utils.js'); 4 importScripts('file-writer-utils.js');
5 } 5 }
6 6
7 description("Test of extending a file using truncate()."); 7 description("Test of extending a file using truncate().");
8 8
9 function onTestSucceeded() 9 function onTestSucceeded()
10 { 10 {
11 testPassed("Truncate extension verified."); 11 testPassed("Truncate extension verified.");
12 cleanUp(); 12 cleanUp();
13 } 13 }
(...skipping 16 matching lines...) Expand all
30 function runTest(fileEntry, fileWriter) { 30 function runTest(fileEntry, fileWriter) {
31 var contents = "Lorem ipsum"; 31 var contents = "Lorem ipsum";
32 writeString(fileEntry, fileWriter, 0, contents, 32 writeString(fileEntry, fileWriter, 0, contents,
33 function() { 33 function() {
34 truncateToExtend(fileEntry, fileWriter, contents, onTestSucc eeded); 34 truncateToExtend(fileEntry, fileWriter, contents, onTestSucc eeded);
35 }); 35 });
36 } 36 }
37 37
38 var jsTestIsAsync = true; 38 var jsTestIsAsync = true;
39 setupAndRunTest(1024, 'file-writer-truncate-extend', runTest); 39 setupAndRunTest(1024, 'file-writer-truncate-extend', runTest);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698