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

Side by Side Diff: LayoutTests/storage/indexeddb/keyrange.html

Issue 5800002: Merge 73697 - 2010-12-10 Hans Wennborg <hans@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 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 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> 3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../../fast/js/resources/js-test-post-function.js"></script> 5 <script src="../../fast/js/resources/js-test-post-function.js"></script>
6 <script src="resources/shared.js"></script> 6 <script src="resources/shared.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 shouldBeTrue("'lowerOpen' in instance"); 77 shouldBeTrue("'lowerOpen' in instance");
78 shouldBeTrue("'upperOpen' in instance"); 78 shouldBeTrue("'upperOpen' in instance");
79 shouldBeFalse("'only' in instance"); 79 shouldBeFalse("'only' in instance");
80 shouldBeFalse("'lowerBound' in instance"); 80 shouldBeFalse("'lowerBound' in instance");
81 shouldBeFalse("'upperBound' in instance"); 81 shouldBeFalse("'upperBound' in instance");
82 shouldBeFalse("'bound' in instance"); 82 shouldBeFalse("'bound' in instance");
83 83
84 debug(""); 84 debug("");
85 85
86 checkSingleKeyRange(1); 86 checkSingleKeyRange(1);
87 checkSingleKeyRange(3.14);
87 checkSingleKeyRange("'a'"); 88 checkSingleKeyRange("'a'");
88 89
89 checkLowerBoundKeyRange(10, true); 90 checkLowerBoundKeyRange(10, true);
90 checkLowerBoundKeyRange(11, false); 91 checkLowerBoundKeyRange(11, false);
91 checkLowerBoundKeyRange(12); 92 checkLowerBoundKeyRange(12);
93 checkLowerBoundKeyRange(10.1, true);
94 checkLowerBoundKeyRange(11.2, false);
95 checkLowerBoundKeyRange(12.3);
92 checkLowerBoundKeyRange("'aa'", true); 96 checkLowerBoundKeyRange("'aa'", true);
93 checkLowerBoundKeyRange("'ab'", false); 97 checkLowerBoundKeyRange("'ab'", false);
94 checkLowerBoundKeyRange("'ac'"); 98 checkLowerBoundKeyRange("'ac'");
95 99
96 checkUpperBoundKeyRange(20, true); 100 checkUpperBoundKeyRange(20, true);
97 checkUpperBoundKeyRange(21, false); 101 checkUpperBoundKeyRange(21, false);
98 checkUpperBoundKeyRange(22); 102 checkUpperBoundKeyRange(22);
103 checkUpperBoundKeyRange(20.2, true);
104 checkUpperBoundKeyRange(21.3, false);
105 checkUpperBoundKeyRange(22.4);
99 checkUpperBoundKeyRange("'ba'", true); 106 checkUpperBoundKeyRange("'ba'", true);
100 checkUpperBoundKeyRange("'bb'", false); 107 checkUpperBoundKeyRange("'bb'", false);
101 checkUpperBoundKeyRange("'bc'"); 108 checkUpperBoundKeyRange("'bc'");
102 109
103 checkBoundKeyRange(30, 40); 110 checkBoundKeyRange(30, 40);
104 checkBoundKeyRange(31, 41, false, false); 111 checkBoundKeyRange(31, 41, false, false);
105 checkBoundKeyRange(32, 42, false, true); 112 checkBoundKeyRange(32, 42, false, true);
106 checkBoundKeyRange(33, 43, true, false); 113 checkBoundKeyRange(33, 43, true, false);
107 checkBoundKeyRange(34, 44, true, true); 114 checkBoundKeyRange(34, 44, true, true);
108 115
116 checkBoundKeyRange(30.1, 40.2);
117 checkBoundKeyRange(31.3, 41.4, false, false);
118 checkBoundKeyRange(32.5, 42.6, false, true);
119 checkBoundKeyRange(33.7, 43.8, true, false);
120 checkBoundKeyRange(34.9, 44.0, true, true);
121
109 checkBoundKeyRange("'aaa'", "'aba'", false, false); 122 checkBoundKeyRange("'aaa'", "'aba'", false, false);
110 checkBoundKeyRange("'aab'", "'abb'"); 123 checkBoundKeyRange("'aab'", "'abb'");
111 checkBoundKeyRange("'aac'", "'abc'", false, false); 124 checkBoundKeyRange("'aac'", "'abc'", false, false);
112 checkBoundKeyRange("'aad'", "'abd'", false, true); 125 checkBoundKeyRange("'aad'", "'abd'", false, true);
113 checkBoundKeyRange("'aae'", "'abe'", true, false); 126 checkBoundKeyRange("'aae'", "'abe'", true, false);
114 checkBoundKeyRange("'aaf'", "'abf'", true, true); 127 checkBoundKeyRange("'aaf'", "'abf'", true, true);
115 128
116 try { 129 try {
117 debug("Passing an invalid key into only([])"); 130 debug("Passing an invalid key into only([])");
118 webkitIDBKeyRange.only([]); 131 webkitIDBKeyRange.only([]);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 176 }
164 177
165 test(); 178 test();
166 179
167 var successfullyParsed = true; 180 var successfullyParsed = true;
168 done(); 181 done();
169 182
170 </script> 183 </script>
171 </body> 184 </body>
172 </html> 185 </html>
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/index-cursor.html ('k') | LayoutTests/storage/indexeddb/keyrange-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698