Sha256: cfca361e993084582592f17271eabd67a056d78718169eba02db8d95d0644e62
Contents?: true
Size: 720 Bytes
Versions: 2
Compression:
Stored size: 720 Bytes
Contents
$(function(){ $('body').append('<div id="qunit_window" style="position:absolute;top:0px;margin: 0px auto;"><h1 id="qunit-header">Тесты</h1><h2 id="qunit-banner"></h2><div id="qunit-testrunner-toolbar"></div><h2 id="qunit-userAgent"></h2><ol id="qunit-tests"></ol><div id="qunit-fixture">test markup, will be hidden</div></div>'); $('#qunit_window').hide(); $(document).keydown(function(event){ //alert(event.keyCode); if(event.keyCode==192){ $('#qunit_window').toggle(); } }); QUnit.done=function(){ var error_count = $('div#qunit_window span.failed').text(); if(error_count!='0'){ $('#qunit_window').show(); } } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ipage-1.0.2 | lib/templates/javascripts/test/tdd/window.js |
ipage-1.0.1 | lib/templates/javascripts/test/tdd/window.js |