dap commit: fixed bad asyc tests - should be using assert_idl_attribute instead of assert_own_property

changeset:   172:ccfedb48c8ef
tag:         tip
user:        Marcos Caceres <w3c@marcosc.com>
date:        Tue Jul 24 14:18:56 2012 +0100
files:       light/tests/submissions/marcosc/DeviceLight_tests.js
description:
fixed bad asyc tests - should be using assert_idl_attribute instead of assert_own_property


diff -r 2ab24b051e82 -r ccfedb48c8ef 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();
   };

Received on Tuesday, 24 July 2012 13:19:14 UTC