- From: Mercurial notifier <cvsmail@w3.org>
- Date: Tue, 17 Jul 2012 20:36:27 +0000
- To: public-dap-commits@w3.org
changeset: 171:2ab24b051e82 tag: tip user: Marcos Caceres <w3c@marcosc.com> date: Tue Jul 17 21:36:19 2012 +0100 files: light/tests/submissions/marcosc/DeviceLight_tests.js proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js proximity/tests/submissions/marcos/UserProximityEvent_tests.js description: removed bad test; explicitly overriding .call() function will have no effect on internal [[Call]] function diff -r ea56d2e10faa -r 2ab24b051e82 light/tests/submissions/marcosc/DeviceLight_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'; diff -r ea56d2e10faa -r 2ab24b051e82 proximity/tests/submissions/marcos/DeviceProximityEvent_tests.js --- 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'; diff -r ea56d2e10faa -r 2ab24b051e82 proximity/tests/submissions/marcos/UserProximityEvent_tests.js --- 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';
Received on Tuesday, 17 July 2012 20:36:29 UTC