Skip to content

Instantly share code, notes, and snippets.

@d5h
Created November 19, 2010 00:24
Show Gist options
  • Save d5h/705944 to your computer and use it in GitHub Desktop.
Save d5h/705944 to your computer and use it in GitHub Desktop.
var start = 0;
this.test_Broken = function () {
alert('start! 5 seconds...');
start = (new Date()).getTime();
windmill.jsTest.actions.waits.forJS({
timeout: 60000,
js: function () {
alert('getting called...');
return 5000 < (new Date()).getTime() - start;
}
});
alert('end! ' + ((new Date()).getTime() - start) / 1000.0);
};
this.test_Print = function () {
alert('next test. ' + ((new Date()).getTime() - start) / 1000.0);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment