| OLD | NEW |
| 1 Test IndexedDB key comparison using IDBFactory.cmp(). | 1 Test IndexedDB key comparison using IDBFactory.cmp(). |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
| 7 | |
| 8 PASS typeof indexedDB.cmp is "function" | 6 PASS typeof indexedDB.cmp is "function" |
| 9 | 7 |
| 10 compare valid keys | 8 compare valid keys |
| 11 PASS indexedDB.cmp(-Infinity,-Number.MAX_VALUE) is -1 | 9 PASS indexedDB.cmp(-Infinity,-Number.MAX_VALUE) is -1 |
| 12 PASS indexedDB.cmp(-Number.MAX_VALUE,-Infinity) is 1 | 10 PASS indexedDB.cmp(-Number.MAX_VALUE,-Infinity) is 1 |
| 13 PASS indexedDB.cmp(-Infinity,-Infinity) is 0 | 11 PASS indexedDB.cmp(-Infinity,-Infinity) is 0 |
| 14 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 | 12 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 |
| 15 PASS indexedDB.cmp(-Number.MAX_VALUE,-1) is -1 | 13 PASS indexedDB.cmp(-Number.MAX_VALUE,-1) is -1 |
| 16 PASS indexedDB.cmp(-1,-Number.MAX_VALUE) is 1 | 14 PASS indexedDB.cmp(-1,-Number.MAX_VALUE) is 1 |
| 17 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 | 15 PASS indexedDB.cmp(-Number.MAX_VALUE,-Number.MAX_VALUE) is 0 |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 PASS code is 0 | 598 PASS code is 0 |
| 601 PASS ename is 'DataError' | 599 PASS ename is 'DataError' |
| 602 Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not
a valid key. | 600 Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not
a valid key. |
| 603 | 601 |
| 604 compare identical keys | 602 compare identical keys |
| 605 PASS indexedDB.cmp(0, -0) is 0 | 603 PASS indexedDB.cmp(0, -0) is 0 |
| 606 PASS successfullyParsed is true | 604 PASS successfullyParsed is true |
| 607 | 605 |
| 608 TEST COMPLETE | 606 TEST COMPLETE |
| 609 | 607 |
| OLD | NEW |