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/imported/web-platform-tests/IndexedDB/idbfactory_cmp2.htm

Issue 727883002: update-w3c-deps import using blink 7f8c8ee3e30dc15b7b821c627fc7ac32331d2253: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>IDBFactory.cmp() - invalid key</title>
4 <link rel="author" title="Intel" href="http://www.intel.com">
5 <link rel="help" href="https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.ht ml#widl-IDBFactory-cmp-short-any-first-any-second">
6 <script src=../../../resources/testharness.js></script>
7 <script src=../../../resources/testharnessreport.js></script>
8 <script src=support.js></script>
9 <div id=log></div>
10 <script>
11 test( function() {
12 assert_throws(new TypeError(), function() {
13 indexedDB.cmp();
14 });
15 }, "IDBFactory.cmp() - no argument");
16
17 test( function() {
18 assert_throws("DataError", function() {
19 indexedDB.cmp(null, null);
20 });
21 assert_throws("DataError", function() {
22 indexedDB.cmp(1, null);
23 });
24 assert_throws("DataError", function() {
25 indexedDB.cmp(null, 1);
26 });
27 }, "IDBFactory.cmp() - null");
28
29 test( function() {
30 assert_throws("DataError", function() {
31 indexedDB.cmp(NaN, NaN);
32 });
33 assert_throws("DataError", function() {
34 indexedDB.cmp(1, NaN);
35 });
36 assert_throws("DataError", function() {
37 indexedDB.cmp(NaN, 1);
38 });
39 }, "IDBFactory.cmp() - NaN");
40 </script>
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698