diff options
author | Elliot Kroo <kroo@appjet.com> | 2010-03-11 15:21:30 -0800 |
---|---|---|
committer | Elliot Kroo <kroo@appjet.com> | 2010-03-11 15:21:30 -0800 |
commit | 98e2821b38a775737e42a2479a6bc65107210859 (patch) | |
tree | 55939a8ba1dce4f4e48ebb13b658061d62bf1b9a /infrastructure/ace/www/testcode.js | |
parent | c1894c8e0a52f4e3d2f89fa92f0066bbf0fcf1b1 (diff) | |
download | etherpad-98e2821b38a775737e42a2479a6bc65107210859.tar.gz etherpad-98e2821b38a775737e42a2479a6bc65107210859.tar.xz etherpad-98e2821b38a775737e42a2479a6bc65107210859.zip |
reorganizing the first level of folders (trunk/branch folders are not the git way :)
Diffstat (limited to 'infrastructure/ace/www/testcode.js')
-rw-r--r-- | infrastructure/ace/www/testcode.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/infrastructure/ace/www/testcode.js b/infrastructure/ace/www/testcode.js new file mode 100644 index 0000000..f393335 --- /dev/null +++ b/infrastructure/ace/www/testcode.js @@ -0,0 +1,36 @@ +function getTestCode() { + var testCode = [ +'/* appjet:version 0.1 */', +'(function(){', +'/*', +' * jQuery 1.2.1 - New Wave Javascript', +' *', +' * Copyright (c) 2007 John Resig (jquery.com)', +' * Dual licensed under the MIT (MIT-LICENSE.txt)', +' * and GPL (GPL-LICENSE.txt) licenses.', +' *', +' * $Date: 2007-09-16 23:42:06 -0400 (Sun, 16 Sep 2007) $', +' * $Rev: 3353 $', +' */', +'', +'// Map over jQuery in case of overwrite', +'if ( typeof jQuery != "undefined" )', +' var _jQuery = jQuery;', +'', +'var jQuery = window.jQuery = function(selector, context) {', +' // If the context is a namespace object, return a new object', +' return this instanceof jQuery ?', +' this.init(selector, context) :', +' new jQuery(selector, context);', +'};', +'', +'// Map over the $ in case of overwrite', +'if ( typeof $ != "undefined" )', +' var _$ = $;', +' ', +'// Map the jQuery namespace to the \'$\' one', +'window.$ = jQuery;', +'', +'var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;'].join('\n'); + return testCode; +} |