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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/readonly-properties.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('../../../fast/js/resources/js-test-pre.js'); 2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js'); 3 importScripts('shared.js');
4 } 4 }
5 5
6 description("Test IndexedDB readonly properties"); 6 description("Test IndexedDB readonly properties");
7 7
8 function setReadonlyProperty(property, value) 8 function setReadonlyProperty(property, value)
9 { 9 {
10 oldValue = eval(property); 10 oldValue = eval(property);
11 debug("trying to set readonly property " + property); 11 debug("trying to set readonly property " + property);
12 evalAndLog(property + " = " + value); 12 evalAndLog(property + " = " + value);
13 newValue = eval(property); 13 newValue = eval(property);
14 if (oldValue == newValue) { 14 if (oldValue == newValue) {
15 testPassed(property + " is still " + oldValue); 15 testPassed(property + " is still " + oldValue);
16 } else { 16 } else {
17 testFailed(property + " value was changed to " + newValue); 17 testFailed(property + " value was changed to " + newValue);
18 } 18 }
19 } 19 }
20 20
21 indexedDBTest(prepareDatabase); 21 indexedDBTest(prepareDatabase);
22 function prepareDatabase() 22 function prepareDatabase()
23 { 23 {
24 db = event.target.result; 24 db = event.target.result;
25 objectStore = evalAndLog("objectStore = db.createObjectStore('foo');"); 25 objectStore = evalAndLog("objectStore = db.createObjectStore('foo');");
26 setReadonlyProperty("objectStore.transaction", "this"); 26 setReadonlyProperty("objectStore.transaction", "this");
27 finishJSTest(); 27 finishJSTest();
28 } 28 }
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/resources/readonly.js ('k') | LayoutTests/storage/indexeddb/resources/removed.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698