forked from jeresig/env-js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blank framework for porting old scope tests out of "obsolete".
(Note that adding a new test now requies matching changes both to build.xml and specs/frame/index.html.)
- Loading branch information
Showing
5 changed files
with
91 additions
and
3 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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
/** | ||
* @author thatcher | ||
*/ | ||
load('dist/env.rhino.js'); | ||
|
||
load('specs/qunit.js'); | ||
load('specs/env.qunit.js'); | ||
load('specs/helpers.js'); | ||
|
||
load('local_settings.js'); | ||
// "load('specs/scope/spec.js');" is in the "index.html" file | ||
|
||
|
||
location = 'specs/scope/index.html'; |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml encoding='utf-8'?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng" dir="ltr"> | ||
<head profile="http://a9.com/-/spec/opensearch/1.1/"> | ||
<title>Envjs Scope Spec</title> | ||
|
||
<link rel="stylesheet" | ||
media="screen" | ||
href="../qunit.css"/> | ||
|
||
<script src="../qunit.js" | ||
type="text/javascript" ></script> | ||
<script src="../../local_settings.js" | ||
type="text/javascript" ></script> | ||
|
||
<script type="text/envjs"> | ||
// Running under Envjs, the above are loaded in 'boot.js' and | ||
// executing them from here would be redundant/problematic. Now | ||
// that we're past, though, make sure the rest execute under | ||
// both Envjs and browsers: | ||
Envjs.scriptTypes['text/javascript'] = true; | ||
</script> | ||
<script src="spec.js" | ||
type="text/javascript" ></script> | ||
|
||
</head> | ||
<body id="body"> | ||
<h1 id="qunit-header"> | ||
<img src="../fixtures/images/icon-green.png"/> | ||
<span>Envjs Scope Spec</span> | ||
</h1> | ||
<h2 id="qunit-banner"></h2> | ||
<h2 id="qunit-userAgent"></h2> | ||
<div id='qunit-testrunner-toolbar'></div> | ||
<div id='qunit-test-summary'> | ||
<ol id='qunit-tests'></ol> | ||
</div> | ||
|
||
<div id="qunit-main" style="text-align: center;"> | ||
|
||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
QUnit.module('scope'); | ||
|
||
test("Initial place-holding do-nothing test", function(){ | ||
ok( true, 'True is true' ); | ||
}); | ||
|