Skip to content

Instantly share code, notes, and snippets.

@benshine
Last active September 30, 2015 20:06
Show Gist options
  • Save benshine/cc63070631d4d131e9a5 to your computer and use it in GitHub Desktop.
Save benshine/cc63070631d4d131e9a5 to your computer and use it in GitHub Desktop.
export default function pauseTest(context, doneCallback, durationInSeconds = 36000) {
console.warn(`pauseTest is pausing for ${durationInSeconds} seconds, hi!`);
context.enableTimeouts(false);
$('#ember-testing-container').css('height', '100%');
$('#ember-testing-container').css('width', '100%');
$('#ember-testing').css('zoom', '100%');
window.setTimeout(function() {
console.info('done with timeout');
doneCallback();
}, durationInSeconds * 1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment