dap commit: fixed type assert_regexp_match

changeset:   170:ea56d2e10faa
tag:         tip
user:        Marcos Caceres <w3c@marcosc.com>
date:        Tue Jul 17 17:19:44 2012 +0100
files:       proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js proximity/tests/submissions/marcos/UserProximityEvent_tests.js
description:
fixed type assert_regexp_match


diff -r 967d74d611e4 -r ea56d2e10faa proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js
--- a/proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js	Tue Jul 17 17:18:06 2012 +0100
+++ b/proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js	Tue Jul 17 17:19:44 2012 +0100
@@ -131,7 +131,7 @@
     }, 'type argument is complext object, with toString method');
 
     test(function() {
-        assert_throws(TypeError(), function() {
+        assert_throws(null, function() {
             new DeviceProximityEvent({
                 toString: function() {
                     return function() {}
diff -r 967d74d611e4 -r ea56d2e10faa proximity/tests/submissions/marcos/UserProximityEvent_tests.js
--- a/proximity/tests/submissions/marcos/UserProximityEvent_tests.js	Tue Jul 17 17:18:06 2012 +0100
+++ b/proximity/tests/submissions/marcos/UserProximityEvent_tests.js	Tue Jul 17 17:19:44 2012 +0100
@@ -40,7 +40,7 @@
 
     //Type attribute tests
     test(function() {
-        assert_throws(TypeError(), function() {
+        assert_throws(null, function() {
             new UserProximityEvent();
         }, 'First argument is required, so was expecting a TypeError.');
     }, 'Missing type argument');
@@ -130,7 +130,7 @@
     }, 'type argument is complext object, with toString method');
 
     test(function() {
-        assert_throws(TypeError(), function() {
+        assert_throws(null, function() {
             new UserProximityEvent({
                 toString: function() {
                     return function() {}

Received on Tuesday, 17 July 2012 16:20:46 UTC