Index: LayoutTests/bluetooth/idl-BluetoothUUID.html |
diff --git a/LayoutTests/bluetooth/idl-BluetoothUUID.html b/LayoutTests/bluetooth/idl-BluetoothUUID.html |
index 3f1234bfdabdf6e95edff5a3b63223cf12600dd7..9ed091dbf636569632cd7bf1daa87dbbf75ffa9d 100644 |
--- a/LayoutTests/bluetooth/idl-BluetoothUUID.html |
+++ b/LayoutTests/bluetooth/idl-BluetoothUUID.html |
@@ -150,13 +150,15 @@ test(function() { |
var func = function() {}; |
// cannonicalUUID |
- assert_equals(BluetoothUUID.canonicalUUID(object), base_uuid); |
+ assert_throws(new TypeError, function() {BluetoothUUID.canonicalUUID(object)}); |
+ // [] converts to "", which converts to 0 before the range check. |
assert_equals(BluetoothUUID.canonicalUUID(array), base_uuid); |
- assert_equals(BluetoothUUID.canonicalUUID(func), base_uuid); |
- assert_equals(BluetoothUUID.canonicalUUID(undefined), base_uuid); |
+ assert_throws(new TypeError, function() {BluetoothUUID.canonicalUUID(func)}); |
+ assert_throws(new TypeError, function() {BluetoothUUID.canonicalUUID(undefined)}); |
assert_equals(BluetoothUUID.canonicalUUID(null), base_uuid); |
assert_equals(BluetoothUUID.canonicalUUID(false), base_uuid); |
- assert_equals(BluetoothUUID.canonicalUUID(NaN), base_uuid); |
+ assert_equals(BluetoothUUID.canonicalUUID(true), BluetoothUUID.canonicalUUID(1)); |
+ assert_throws(new TypeError, function() {BluetoothUUID.canonicalUUID(NaN)}); |
// getService |
assert_throws("SyntaxError", function() { |