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

Side by Side Diff: LayoutTests/storage/websql/execute-sql-args.js

Issue 949193002: [bindings] Remove SQLTransaction's usage of custom binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed exception Created 5 years, 9 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
OLDNEW
1 var throwOnToStringObject = { }; 1 var throwOnToStringObject = { };
2 throwOnToStringObject.toString = function () { throw "Cannot call toString on th is object." }; 2 throwOnToStringObject.toString = function () { throw "Cannot call toString on th is object." };
3 3
4 var throwOnGetLengthObject = { }; 4 var throwOnGetLengthObject = { };
5 throwOnGetLengthObject.__defineGetter__("length", function () { throw "Cannot ge t length of this object."; }); 5 throwOnGetLengthObject.__defineGetter__("length", function () { throw "Cannot ge t length of this object."; });
6 6
7 var throwOnGetZeroObject = { length: 1 }; 7 var throwOnGetZeroObject = { length: 1 };
8 throwOnGetZeroObject.__defineGetter__("0", function () { throw "Cannot get 0 pro perty of this object."; }); 8 throwOnGetZeroObject.__defineGetter__("0", function () { throw "Cannot get 0 pro perty of this object."; });
9 9
10 var expectNoException = [ 10 var expectNoException = [
11 'null', 11 'null',
12 'undefined', 12 'undefined',
13 '0', 13 '0',
14 '""', 14 '""',
15 '"", null', 15 '"", null',
16 '"", undefined', 16 '"", undefined',
17 '"", []', 17 '"", []',
18 '"", [ "arg0" ]', 18 '"", [ "arg0" ]',
19 '"", { }',
20 '"", { length: 0 }', 19 '"", { length: 0 }',
21 '"", { length: 1, 0: "arg0" }', 20 '"", { length: 1, 0: "arg0" }',
22 '"", null, null', 21 '"", null, null',
23 '"", null, undefined', 22 '"", null, undefined',
24 '"", null, function(){}', 23 '"", null, function(){}',
25 '"", null, null, null', 24 '"", null, null, null',
26 '"", null, null, undefined', 25 '"", null, null, undefined',
27 '"", null, null, function(){}', 26 '"", null, null, function(){}',
28 ]; 27 ];
29 28
30 var expectException = [ 29 var expectException = [
31 '', 30 '',
32 'throwOnToStringObject', 31 'throwOnToStringObject',
33 '"", throwOnGetLengthObject', 32 '"", throwOnGetLengthObject',
34 '"", throwOnGetZeroObject', 33 '"", throwOnGetZeroObject',
35 '"", [ throwOnToStringObject ]', 34 '"", [ throwOnToStringObject ]',
36 '"", 0', 35 '"", 0',
37 '"", ""', 36 '"", ""',
37 '"", { }',
38 '"", null, 0', 38 '"", null, 0',
39 '"", null, ""', 39 '"", null, ""',
40 '"", null, { }', 40 '"", null, { }',
41 '"", null, null, 0', 41 '"", null, null, 0',
42 '"", null, null, ""', 42 '"", null, null, ""',
43 '"", null, null, { }', 43 '"", null, null, { }',
44 ]; 44 ];
45 45
46 function tryExecuteSql(transaction, parameterList) 46 function tryExecuteSql(transaction, parameterList)
47 { 47 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (window.testRunner) 79 if (window.testRunner)
80 testRunner.notifyDone(); 80 testRunner.notifyDone();
81 } 81 }
82 82
83 function runTest() 83 function runTest()
84 { 84 {
85 85
86 var db = openDatabaseWithSuffix("ExecuteSQLArgsTest", "1.0", "Test of handli ng of the arguments to SQLTransaction.executeSql", 1); 86 var db = openDatabaseWithSuffix("ExecuteSQLArgsTest", "1.0", "Test of handli ng of the arguments to SQLTransaction.executeSql", 1);
87 db.transaction(runTransactionTests); 87 db.transaction(runTransactionTests);
88 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698