removed bad test; explicitly overriding .call() function will have no effect on internal [[Call]] function
authorMarcos Caceres <w3c@marcosc.com>
Tue, 17 Jul 2012 21:36:19 +0100
changeset 171 2ab24b051e82
parent 170 ea56d2e10faa
child 172 ccfedb48c8ef
removed bad test; explicitly overriding .call() function will have no effect on internal [[Call]] function
light/tests/submissions/marcosc/DeviceLight_tests.js
proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js
proximity/tests/submissions/marcos/UserProximityEvent_tests.js
--- a/light/tests/submissions/marcosc/DeviceLight_tests.js	Tue Jul 17 17:19:44 2012 +0100
+++ b/light/tests/submissions/marcosc/DeviceLight_tests.js	Tue Jul 17 21:36:19 2012 +0100
@@ -280,15 +280,6 @@
   }, 'treat object with non-callable call property as null');
 
   test(function() {
-    var desc = 'window.ondevicelight did not treat noncallable as null',
-      test = function() {};
-    test.call = 'test';
-    window.ondevicelight = function() {};
-    window.ondevicelight = test;
-    assert_equals(window.ondevicelight, null, desc);
-  }, 'treat object with non-callable call property as null');
-
-  test(function() {
     var desc = 'window.ondevicelight did not treat noncallable (string) as null';
     window.ondevicelight = function() {};
     window.ondevicelight = 'string';
--- a/proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js	Tue Jul 17 17:19:44 2012 +0100
+++ b/proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js	Tue Jul 17 21:36:19 2012 +0100
@@ -210,15 +210,6 @@
     }, 'treat object with non-callable call property as null');
 
     test(function() {
-        var desc = 'window.ondeviceproximity did not treat noncallable as null',
-            test = function() {};
-        test.call = 'test';
-        window.ondeviceproximity = function() {};
-        window.ondeviceproximity = test;
-        assert_equals(window.ondeviceproximity, null, desc);
-    }, 'treat object with non-callable call property as null');
-
-    test(function() {
         var desc = 'window.ondeviceproximity did not treat noncallable (string) as null';
         window.ondeviceproximity = function() {};
         window.ondeviceproximity = 'string';
--- a/proximity/tests/submissions/marcos/UserProximityEvent_tests.js	Tue Jul 17 17:19:44 2012 +0100
+++ b/proximity/tests/submissions/marcos/UserProximityEvent_tests.js	Tue Jul 17 21:36:19 2012 +0100
@@ -269,15 +269,6 @@
     }, 'treat object with non-callable call property as null');
 
     test(function() {
-        var desc = 'window.onuserproximity did not treat noncallable as null',
-            test = function() {};
-        test.call = 'test';
-        window.onuserproximity = function() {};
-        window.onuserproximity = test;
-        assert_equals(window.onuserproximity, null, desc);
-    }, 'treat object with non-callable call property as null');
-
-    test(function() {
         var desc = 'window.onuserproximity did not treat noncallable (string) as null';
         window.onuserproximity = function() {};
         window.onuserproximity = 'string';