fixed bad asyc tests - should be using assert_idl_attribute instead of assert_own_property
authorMarcos Caceres <w3c@marcosc.com>
Tue, 24 Jul 2012 14:18:56 +0100
changeset 172 ccfedb48c8ef
parent 171 2ab24b051e82
child 173 d347e7996535
fixed bad asyc tests - should be using assert_idl_attribute instead of assert_own_property
light/tests/submissions/marcosc/DeviceLight_tests.js
--- a/light/tests/submissions/marcosc/DeviceLight_tests.js	Tue Jul 17 21:36:19 2012 +0100
+++ b/light/tests/submissions/marcosc/DeviceLight_tests.js	Tue Jul 24 14:18:56 2012 +0100
@@ -320,7 +320,7 @@
     t.step(function() {
       var msg = 'expected instance of DeviceLightEvent: ';
       assert_true(e instanceof window.DeviceLightEvent, msg);
-      assert_own_property(e, 'value', 'event has value property');
+      assert_idl_attribute(e, 'value', 'event has value property');
     });
     t.done();
   });
@@ -330,7 +330,7 @@
     t2.step(function() {
       var msg = 'expected instance of DeviceLightEvent: ';
       assert_true(e instanceof window.DeviceLightEvent, msg);
-      assert_own_property(e, 'value', 'event has value property');
+      assert_idl_attribute(e, 'value', 'event has value property');
     });
     t2.done();
   };