~davewalker/etherpad/ubuntu-unlimited-max-users-and-revisions

« back to all changes in this revision

Viewing changes to infrastructure/ace/build/testcode.js

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function getTestCode() {
 
2
  var testCode = [
 
3
'/* appjet:version 0.1 */',
 
4
'(function(){',
 
5
'/*',
 
6
' * jQuery 1.2.1 - New Wave Javascript',
 
7
' *',
 
8
' * Copyright (c) 2007 John Resig (jquery.com)',
 
9
' * Dual licensed under the MIT (MIT-LICENSE.txt)',
 
10
' * and GPL (GPL-LICENSE.txt) licenses.',
 
11
' *',
 
12
' * $Date: 2007-09-16 23:42:06 -0400 (Sun, 16 Sep 2007) $',
 
13
' * $Rev: 3353 $',
 
14
' */',
 
15
'',
 
16
'// Map over jQuery in case of overwrite',
 
17
'if ( typeof jQuery != "undefined" )',
 
18
'       var _jQuery = jQuery;',
 
19
'',
 
20
'var jQuery = window.jQuery = function(selector, context) {',
 
21
'       // If the context is a namespace object, return a new object',
 
22
'       return this instanceof jQuery ?',
 
23
'               this.init(selector, context) :',
 
24
'               new jQuery(selector, context);',
 
25
'};',
 
26
'',
 
27
'// Map over the $ in case of overwrite',
 
28
'if ( typeof $ != "undefined" )',
 
29
'       var _$ = $;',
 
30
'       ',
 
31
'// Map the jQuery namespace to the \'$\' one',
 
32
'window.$ = jQuery;',
 
33
'',
 
34
'var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;'].join('\n');
 
35
  return testCode;
 
36
}