diff options
author | alexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c <none@none> | 2010-02-03 00:46:50 +0000 |
---|---|---|
committer | alexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c <none@none> | 2010-02-03 00:46:50 +0000 |
commit | 4a9748e10084ca99fadec4f0fb1a3c22af7f3794 (patch) | |
tree | ee6c41a5458e75a253890856f4d096d387c14f93 /trunk/trunk/infrastructure/ace/build/testcode.js | |
parent | cf537a08aa75b85a9ac66b61573ccab981542e10 (diff) | |
download | etherpad-4a9748e10084ca99fadec4f0fb1a3c22af7f3794.tar.gz etherpad-4a9748e10084ca99fadec4f0fb1a3c22af7f3794.tar.xz etherpad-4a9748e10084ca99fadec4f0fb1a3c22af7f3794.zip |
initial code push
--HG--
extra : convert_revision : svn%3Ab2ef00c0-3703-41da-baef-cfe82387ac0c/trunk%403
Diffstat (limited to 'trunk/trunk/infrastructure/ace/build/testcode.js')
-rw-r--r-- | trunk/trunk/infrastructure/ace/build/testcode.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/trunk/trunk/infrastructure/ace/build/testcode.js b/trunk/trunk/infrastructure/ace/build/testcode.js new file mode 100644 index 0000000..f393335 --- /dev/null +++ b/trunk/trunk/infrastructure/ace/build/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; +} |