Skip to content

Instantly share code, notes, and snippets.

@jlsuttles
Forked from ianpetzer/gist:5779901
Last active December 20, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlsuttles/6143801 to your computer and use it in GitHub Desktop.
Save jlsuttles/6143801 to your computer and use it in GitHub Desktop.
//= require application
//= require_tree .
//= require_self
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
document.write('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>');
App.rootElement = '#ember-testing';
App.setupForTesting();
App.injectTestHelpers();
function exists(selector) {
return !!find(selector).length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment