Parameter to DOMStringList.contains() should be mandatory
https://bugs.webkit.org/show_bug.cgi?id=165257

Reviewed by Alex Christensen.

Source/WebCore:

Parameter to DOMStringList.contains() should be mandatory.
Gecko and Blink have it mandatory but WebKit had it optional and the
string 'undefined" was used by default, which is not helpful.

No new tests, updated existing test.

* dom/DOMStringList.idl:

LayoutTests:

Extend layout test coverage.

* storage/indexeddb/database-basics-expected.txt:
* storage/indexeddb/resources/database-basics.js:
(checkObjectStore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/storage/indexeddb/database-basics-expected.txt b/LayoutTests/storage/indexeddb/database-basics-expected.txt
index 2582bb8..45c5c27 100644
--- a/LayoutTests/storage/indexeddb/database-basics-expected.txt
+++ b/LayoutTests/storage/indexeddb/database-basics-expected.txt
@@ -26,6 +26,7 @@
 PASS db.objectStoreNames.contains('') is false
 PASS db.objectStoreNames.contains('test456') is false
 PASS db.objectStoreNames.contains('test123') is true
+PASS db.objectStoreNames.contains() threw exception TypeError: Not enough arguments.
 db.close()
 request = indexedDB.open(dbname, 2)
 db = event.target.result
@@ -36,6 +37,7 @@
 PASS db.objectStoreNames.contains('') is false
 PASS db.objectStoreNames.contains('test456') is false
 PASS db.objectStoreNames.contains('test123') is true
+PASS db.objectStoreNames.contains() threw exception TypeError: Not enough arguments.
 db.createObjectStore("test456")
 setVersionTrans = event.target.transaction
 PASS setVersionTrans is non-null.
@@ -46,6 +48,7 @@
 PASS db.objectStoreNames.contains('') is false
 PASS db.objectStoreNames.contains('test456') is false
 PASS db.objectStoreNames.contains('test123') is true
+PASS db.objectStoreNames.contains() threw exception TypeError: Not enough arguments.
 db.close()
 Now that the connection is closed, transaction creation should fail
 Expecting exception from db.transaction('test123')