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

Side by Side Diff: LayoutTests/fast/filesystem/resources/file-writer-write-overlapped.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 using FileWriter.seek to write overlapping existing data in a file."); 7 description("Test using FileWriter.seek to write overlapping existing data in a file.");
8 8
9 var fileEntry; 9 var fileEntry;
10 var fileWriter; 10 var fileWriter;
11 var testData = "Lorem ipsum"; 11 var testData = "Lorem ipsum";
12 var seekBackwardOffset = -4; 12 var seekBackwardOffset = -4;
13 var seekForwardOffset = 4; 13 var seekForwardOffset = 4;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // data for the test we want to run. In the execution phase, we do a seek and a write, and the utility function that does those also validates that the data 64 // data for the test we want to run. In the execution phase, we do a seek and a write, and the utility function that does those also validates that the data
65 // actually got written. So in the validation phase, we only have to check that the rest of the file didn't get corrupted while we were writing our bit. 65 // actually got written. So in the validation phase, we only have to check that the rest of the file didn't get corrupted while we were writing our bit.
66 function runTest(fileEntryIn, fileWriterIn) { 66 function runTest(fileEntryIn, fileWriterIn) {
67 fileEntry = fileEntryIn; 67 fileEntry = fileEntryIn;
68 fileWriter = fileWriterIn; 68 fileWriter = fileWriterIn;
69 setFileContents(fileEntry, fileWriter, testData, testSeekBackward); 69 setFileContents(fileEntry, fileWriter, testData, testSeekBackward);
70 } 70 }
71 71
72 var jsTestIsAsync = true; 72 var jsTestIsAsync = true;
73 setupAndRunTest(1024, 'file-writer-truncate-extend', runTest); 73 setupAndRunTest(1024, 'file-writer-truncate-extend', runTest);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698