-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: add checkbox to load Backbone+Underscore master
- Loading branch information
1 parent
8dcc802
commit 6bb0610
Showing
3 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,47 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>QUnit Tests</title> | ||
<!--<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" type="text/css" media="screen" />--> | ||
<link rel="stylesheet" href="./lib/qunit-1.11.0.css" type="text/css" media="screen" /> | ||
<title>Backbone-tastypie Test Suite</title> | ||
<link rel="stylesheet" href="./lib/qunit.css" type="text/css" media="screen" /> | ||
|
||
<!--<script src="http://code.jquery.com/jquery-latest.js"></script>--> | ||
<script type="text/javascript" src="./lib/jquery-1.9.1.js"></script> | ||
<script type="text/javascript" src="./lib/underscore.js"></script> | ||
<script type="text/javascript" src="./lib/backbone.js"></script> | ||
<script type="text/javascript" src="./lib/qunit.js"></script> | ||
<script type="text/javascript"> | ||
QUnit.config.urlConfig.push({ | ||
id: 'master', | ||
label: 'Backbone+Underscore master', | ||
tooltip: 'Load Backbone and Underscore master, instead of using the local copies.' | ||
}); | ||
|
||
var srcPath, | ||
cacheBust = '?' + ( +new Date() ); | ||
|
||
if ( QUnit.urlParams.master ) { | ||
var sources = [ | ||
'https://raw.github.com/documentcloud/underscore/master/underscore.js', | ||
'https://raw.github.com/documentcloud/backbone/master/backbone.js' | ||
]; | ||
} | ||
else { | ||
var sources = [ | ||
'./lib/underscore.js', | ||
'./lib/backbone.js' | ||
]; | ||
} | ||
|
||
// Load source | ||
sources.forEach( function( source ) { | ||
document.write( '<script type="text/javascript" src="' + source + cacheBust + '"><\/script>' ); | ||
}); | ||
</script> | ||
<script type="text/javascript" src="../backbone-relational.js"></script> | ||
<script type="text/javascript" src="./lib/backbone-relational.js"></script> | ||
<script type="text/javascript" src="../backbone_tastypie/static/js/backbone-tastypie.js"></script> | ||
|
||
<!--<script type="text/javascript" src="http://code.jquery.com/qunit/git/qunit.js"></script>--> | ||
<script type="text/javascript" src="./lib/qunit-1.11.0.js"></script> | ||
<script type="text/javascript" src="./tests.js"></script> | ||
</head> | ||
<body> | ||
<h1 id="qunit-header">Backbone-tastypie Test Suite</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"> | ||
</div> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.