From d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 8 Jun 2010 08:22:05 +0200 Subject: reverted folder structure change for better mergeing with upstream --- trunk/infrastructure/ace/build/testcode.js | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 trunk/infrastructure/ace/build/testcode.js (limited to 'trunk/infrastructure/ace/build/testcode.js') diff --git a/trunk/infrastructure/ace/build/testcode.js b/trunk/infrastructure/ace/build/testcode.js new file mode 100644 index 0000000..f393335 --- /dev/null +++ b/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; +} -- cgit v1.2.3