Мне трудно заставить Quit работать с jquery-mobile.У меня есть тестовая страница:
<div id="testing-page" data-role="page" >
<div data-role="header">
<h1 id="qunit-header">Regression Testing</h1>
</div>
<div data-role="content">
<a id="testing-run" href="#" data-role="button" >Run</a>
<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>
</div>
Это загружается из меню.И у меня есть следующие для выполнения теста:
$('#testing-page').live('pageinit', function(event) {
test("simple test", function() {
ok( true, "pass" );
});
});
Это выдает следующую ошибку:
reset() failed, following Test simple test, exception and reset fn follows
console.error(message);
...
TypeError: config.fixture is undefined
jQuery( main ).replaceWith( config.fixture.cloneNode(true) );
Есть идеи?