Author: rolf
Date: 2008-01-30 12:36:39 -0500 (Wed, 30 Jan 2008)
New Revision: 94394

Modified:
   trunk/moon/test/js/ChangeLog
   trunk/moon/test/js/props.html
Log:
2008-01-30  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * props.html: More tests.



Modified: trunk/moon/test/js/ChangeLog
===================================================================
--- trunk/moon/test/js/ChangeLog        2008-01-30 17:18:05 UTC (rev 94393)
+++ trunk/moon/test/js/ChangeLog        2008-01-30 17:36:39 UTC (rev 94394)
@@ -1,3 +1,7 @@
+2008-01-30  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * props.html: More tests.
+
 2007-12-19  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * assorted.html: Add a bunch of test cases to check what happens when

Modified: trunk/moon/test/js/props.html
===================================================================
--- trunk/moon/test/js/props.html       2008-01-30 17:18:05 UTC (rev 94393)
+++ trunk/moon/test/js/props.html       2008-01-30 17:36:39 UTC (rev 94394)
@@ -47,6 +47,10 @@
                onLoad: null
        }
 });
+
+function $plugin() {
+       return document.getElementById ("MoonlightControl");
+}
        </script>
 </div>
 
@@ -106,6 +110,27 @@
        testDrawingAttributes: function () {
                this.assertDefaultValues (CodeModel.DrawingAttributes);
        },
+       testNonDOPropertyChaining: function () {
+               var da = $plugin ().content.createFromXaml ("<TimelineMarker 
/>");
+               this.assertEqual (null, da.Time);
+               da.Time = "0";
+               this.assertEqual (0.0, da.Time.seconds);
+               da.Time.seconds = 1;
+               this.assertEqual (1.0, da.Time.seconds);
+               da.Time.seconds = 1.1;
+               this.assertEqual (1.1, Math.round (da.Time.seconds * 1000) / 
1000);
+       },
+       testTimeSpan: function () {
+               var da = $plugin ().content.createFromXaml ("<TimelineMarker 
/>");
+               this.assertEqual (null, da.Time);
+               da.Time = "0";
+               var ts = da.Time;
+               this.assertEqual (0.0, ts.seconds);
+               ts.seconds = 1;
+               this.assertEqual (1.0, ts.seconds);
+               ts.seconds = 1.1;
+               this.assertEqual (1.1, Math.round (ts.seconds * 1000) / 1000);
+       },
        testEllipse: function () {
                this.assertDefaultValues (CodeModel.Ellipse);
        },
@@ -178,6 +203,10 @@
        testMediaElement: function () {
                this.assertDefaultValues (CodeModel.MediaElement);
        },
+       testMediaElementBufferingTime: function () {
+               var da = $plugin ().content.createFromXaml ("<MediaElement />");
+               this.assertEqual (5.0, da.BufferingTime.seconds);
+       },
        testPath: function () {
                this.assertDefaultValues (CodeModel.Path);
        },

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to