All pastes #812563 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-11 21:37 UTC
rendered paste body
Index: MouseInput.htm
===================================================================
--- MouseInput.htm      (revision 428)
+++ MouseInput.htm      (working copy)
@@ -1,4 +1,4 @@
-<!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN" -->
+!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN" -->
 <!-- Copyright (c) Microsoft Corporation.   All rights reserved. -->
 <HTML>
 <HEAD>
@@ -137,7 +137,11 @@
   }
   else
   {
-    document.write('Browser not supported');
+document.write('<div style="position:absolute;left:0;top:0">');
+    document.write(' <embed type="application/x-silverlight"');
+document.write(' width="400" height="400" id="joltControl" Source="#xaml" Background="#DDDDDD"> ');
+    document.write(' </embed></div>');
+//    document.write('Browser not supported');
   }
 </script>
 
@@ -179,9 +183,9 @@
                     ["medialeave", "bluesquare3", "Media Mouse Leave"]
                 ];
 
-    autoCreateJoltControl = false;
+autoCreateJoltControl = false;
     var joltControl = document.getElementById("joltControl");
-    var contentLoaded = 0;
+    var contentLoaded = 1;
     ontestready = onTestReady;
     var mouseInputTestFinished   = false;
 
@@ -265,7 +269,7 @@
             window.setTimeout(onTestReady, 1000);
             return;
         }
-        window.setTimeout(function(){Test();}, 1000);
+        window.setTimeout(Test, 1000);
     }
     
     function Test()
@@ -285,6 +289,7 @@
         var screenX = (browser == "ie") ? window.screenLeft : window.screenX;
         var screenY = (browser == "ie") ? window.screenTop : window.screenY;
         window.status = "" + screenX + "," + screenY;
+
         MouseHelper.MoveMouse(screenX + 5,screenY + 5); // ui activate jolt
         MouseHelper.MouseLeftClick(); // ui activate
         MouseHelper.MoveMouse(screenX + 254,screenY + 5);
@@ -317,7 +322,7 @@
     }
     function TakeSnapShot()
     {
-        TestHost.TakeMultipleSnapshotsAndShutdown(joltControl, "frames",1, 1000, 1000, 400, 400);        
+        TestHost.TakeMultipleSnapshotsAndShutdown(joltControl, "frames", 3, 1000, 1000, 400, 400);        
     }
 
     function HatBrimMouseEnter()