forked from relevance/blue-ridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up JavaScript shell rake task (including moving it to a simp…
…ler "rake js:shell").
- Loading branch information
Larry Karnowski
committed
Feb 6, 2009
1 parent
062fe5d
commit 13d071b
Showing
3 changed files
with
29 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
(function(){ | ||
var _old_quit = this.quit; | ||
this.__defineGetter__("exit", function(){ _old_quit() }); | ||
this.__defineGetter__("quit", function(){ _old_quit() }); | ||
|
||
print("================================================="); | ||
print(" Rhino JavaScript Shell"); | ||
print(" To exit type 'exit', 'quit', or 'quit()'."); | ||
print("================================================="); | ||
|
||
var plugin_prefix = "vendor/plugins/javascript_testing/"; | ||
var fixture_file = plugin_prefix + "generators/javascript_testing/templates/application.html"; | ||
|
||
load(plugin_prefix + "lib/env.rhino.js"); | ||
print(" - loaded env.js"); | ||
|
||
window.location = fixture_file; | ||
print(" - sample DOM loaded"); | ||
|
||
// load(plugin_prefix + "lib/jquery-1.3.1.js"); | ||
// print (" jQuery-1.3.1 loaded"); | ||
load(plugin_prefix + "lib/jquery-1.2.6.js"); | ||
print(" - jQuery-1.2.6 loaded"); | ||
|
||
print("================================================="); | ||
})(); |
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