Merge lp:~jonas-drange/online-services-common-js/1319334-ci into lp:online-services-common-js
- 1319334-ci
- Merge into trunk
Proposed by
Jonas G. Drange
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 34 | ||||
Proposed branch: | lp:~jonas-drange/online-services-common-js/1319334-ci | ||||
Merge into: | lp:online-services-common-js | ||||
Diff against target: |
1290 lines (+414/-320) 26 files modified
Gruntfile.js (+3/-0) bower.json (+0/-7) config-manager.txt (+1/-0) package.json (+1/-4) scripts/change-test-runner.py (+192/-0) scripts/import.sh (+2/-2) src/carousel/tests/unit/index.html (+7/-10) src/ga-tracking/tests/unit/index.html (+7/-10) src/global-navigation/tests/unit/global-nav-yui.html (+4/-8) src/html5-details/tests/unit/index.html (+7/-10) src/myapps-hud/tests/unit/index.html (+13/-16) src/navbar/tests/unit/index.html (+62/-71) src/overlay-extras/tests/unit/index.html (+7/-10) src/password-meter/tests/unit/password-meter-yui.html (+6/-13) src/plugin-collapse/tests/unit/index.html (+7/-14) src/plugin-jit-bar/tests/unit/plugin-jit-bar-yui.html (+4/-10) src/rangyinputs/tests/unit/rangyinputs-yui.html (+5/-9) src/searchbar/tests/unit/index.html (+14/-22) src/uploader-augmented/tests/unit/uploader-tests-yui.html (+4/-11) src/uploader-myapps-packages-for-extraction/tests/unit/index.html (+7/-10) src/uploader-myapps-packages/tests/unit/index.html (+7/-10) src/uploader-myapps/tests/unit/index.html (+7/-10) src/util/tests/unit/oops-yui.html (+4/-10) src/util/tests/unit/util-yui.html (+4/-10) src/widget-cc-input/tests/unit/index-yui.html (+33/-43) tarmac_verify.sh (+6/-0) |
||||
To merge this branch: | bzr merge lp:~jonas-drange/online-services-common-js/1319334-ci | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephen Stewart (community) | Approve | ||
Review via email: mp+219685@code.launchpad.net |
Commit message
- add tarmac_verify.sh which jenkins will pick up and run
- remove bower, replace with config-managed yui
- remove prepublish scripts from npm
- search/replace bower YUI path with new config-managed path
- via hacky script
- beatifulsoup mangles the HTML a bit (actually cleans it up too), but I favor this over manually editing all test runners
Description of the change
To post a comment you must log in.
Revision history for this message
Stephen Stewart (stephen-stewart) wrote : | # |
- 41. By Jonas G. Drange
-
grunt verify task
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'Gruntfile.js' |
2 | --- Gruntfile.js 2014-04-02 13:36:17 +0000 |
3 | +++ Gruntfile.js 2014-05-15 15:07:26 +0000 |
4 | @@ -255,6 +255,9 @@ |
5 | grunt.registerTask('run', ['connect', 'watch']); |
6 | grunt.registerTask('bootstrap', ['shell:configmanager', 'shell:bootstrap']); |
7 | |
8 | + // task run by jenkins |
9 | + grunt.registerTask('verify', ['bootstrap', 'grover', 'mocha']); |
10 | + |
11 | grunt.registerTask('shifter', 'Build YUI modules with Shifter', function() { |
12 | var done = this.async(), |
13 | config = grunt.config.get('shifter.options') || {}, |
14 | |
15 | === removed file 'bower.json' |
16 | --- bower.json 2014-04-02 10:35:07 +0000 |
17 | +++ bower.json 1970-01-01 00:00:00 +0000 |
18 | @@ -1,7 +0,0 @@ |
19 | -{ |
20 | - "name": "online-services-js", |
21 | - "version": "1.0.1", |
22 | - "devDependencies": { |
23 | - "yui3": "git://github.com/yui/yui3#3.14.1" |
24 | - } |
25 | -} |
26 | |
27 | === modified file 'config-manager.txt' |
28 | --- config-manager.txt 2014-05-13 11:03:26 +0000 |
29 | +++ config-manager.txt 2014-05-15 15:07:26 +0000 |
30 | @@ -1,1 +1,2 @@ |
31 | branches/ulysses bzr+ssh://bazaar.launchpad.net/~ubuntuone-hackers/ulysses/trunk;revno=42 |
32 | +branches/yui bzr+ssh://bazaar.launchpad.net/~ubuntuone-pqm-team/yui/stable;revno=4526 |
33 | |
34 | === modified file 'package.json' |
35 | --- package.json 2014-04-02 15:32:44 +0000 |
36 | +++ package.json 2014-05-15 15:07:26 +0000 |
37 | @@ -4,10 +4,6 @@ |
38 | "description": "online services yui modules", |
39 | "homepage": "https://launchpad.net/online-services-common-js", |
40 | "bugs": "https://bugs.launchpad.net/online-services-common-js", |
41 | - "scripts": { |
42 | - "test": "echo \"Error: no test specified\" && exit 1", |
43 | - "prepublish": "grunt bootstrap && bower install && grunt test" |
44 | - }, |
45 | "repository": { |
46 | "type": "bzr", |
47 | "url": "lp:online-services-common-js" |
48 | @@ -21,6 +17,7 @@ |
49 | "license": "AGPL-3.0", |
50 | "devDependencies": { |
51 | "grunt": "~0.4.2", |
52 | + "grunt-cli": "~0.1.13", |
53 | "grunt-contrib-clean": "~0.5.0", |
54 | "grunt-contrib-compress": "~0.5.3", |
55 | "grunt-contrib-connect": "~0.6.0", |
56 | |
57 | === added directory 'scripts' |
58 | === added file 'scripts/change-test-runner.py' |
59 | --- scripts/change-test-runner.py 1970-01-01 00:00:00 +0000 |
60 | +++ scripts/change-test-runner.py 2014-05-15 15:07:26 +0000 |
61 | @@ -0,0 +1,192 @@ |
62 | +#!/usr/bin/env python |
63 | +""" |
64 | +SYNOPSIS |
65 | + change-test-runner.py [options] |
66 | + [--help] [--verbose] [--version] |
67 | + list-changes |
68 | + <change> <what> |
69 | + |
70 | +DESCRIPTION |
71 | + Change various aspects of test runners (e.g. navbar/tests/unit/index.html) |
72 | + |
73 | +EXAMPLES |
74 | + change-test-runner.py --module navbar base.src http://disney.com/base.js |
75 | + |
76 | +""" |
77 | + |
78 | +import sys |
79 | +import os |
80 | +import traceback |
81 | +import optparse |
82 | +from glob import glob |
83 | + |
84 | +from bs4 import BeautifulSoup |
85 | +import re |
86 | +#from pexpect import run, spawn |
87 | + |
88 | +SRC_DIR = 'src' |
89 | +TEST_RUNNER_PATH = ['tests', 'unit', '*.html'] |
90 | + |
91 | + |
92 | +class NotImplementedError(Exception): |
93 | + pass |
94 | + |
95 | + |
96 | +def yui_src(html, newval): |
97 | + yui = html.find( |
98 | + attrs={ |
99 | + 'id': 'yui-src' |
100 | + }) |
101 | + yui['src'] = newval |
102 | + return html |
103 | + |
104 | + |
105 | +def yui_base_src(html, newval): |
106 | + """Frail search/replace of YUI base property""" |
107 | + scripts = html.find_all('script') |
108 | + |
109 | + for script in scripts: |
110 | + r = re.search('base\:\ (?P<src>\'.+yui.+\')', str(script)) |
111 | + if r: |
112 | + new_script = re.sub( |
113 | + 'base\: \'.+yui.+\'', 'base: \'%s\'' % newval, script.string) |
114 | + |
115 | + script.string = new_script |
116 | + return html |
117 | + |
118 | + |
119 | +def config_src(html, newval): |
120 | + raise NotImplementedError |
121 | + |
122 | + |
123 | +def base_src(html, newval): |
124 | + raise NotImplementedError |
125 | + |
126 | + |
127 | +def mocha_js_src(html, newval): |
128 | + raise NotImplementedError |
129 | + |
130 | + |
131 | +def mocha_css_href(html, newval): |
132 | + raise NotImplementedError |
133 | + |
134 | + |
135 | +def chai_js_src(html, newval): |
136 | + raise NotImplementedError |
137 | + |
138 | +CHANGES = { |
139 | + 'yui-src': yui_src, |
140 | + 'yui-base-src': yui_base_src, |
141 | + 'config-src': config_src, |
142 | + 'base-src': base_src, |
143 | + 'mocha-js-src': mocha_js_src, |
144 | + 'mocha-css-href': mocha_css_href, |
145 | + 'chai-js-src': chai_js_src |
146 | +} |
147 | + |
148 | + |
149 | +def _get_test_runner(module): |
150 | + """Return array of runners""" |
151 | + runners = [] |
152 | + files = glob(os.path.join(SRC_DIR, module, *TEST_RUNNER_PATH)) |
153 | + |
154 | + for f in files: |
155 | + if os.path.isfile(f): |
156 | + runners.append(f) |
157 | + return runners |
158 | + |
159 | + |
160 | +def _get_test_runners(): |
161 | + """Return array of runners""" |
162 | + test_dirs = [d for d in os.listdir(SRC_DIR)] |
163 | + test_runners = [] |
164 | + |
165 | + for d in test_dirs: |
166 | + files = glob(os.path.join(SRC_DIR, d, *TEST_RUNNER_PATH)) |
167 | + for f in files: |
168 | + if os.path.isfile(f): |
169 | + test_runners.append(f) |
170 | + |
171 | + return test_runners |
172 | + |
173 | + |
174 | +def modify(runners, options, args): |
175 | + """Modify runners as requested""" |
176 | + if len(runners) == 0: |
177 | + return |
178 | + |
179 | + for runner in runners: |
180 | + with open(runner, 'r+') as content_file: |
181 | + html = content_file.read() |
182 | + parsed_html = BeautifulSoup(html) |
183 | + new_html = CHANGES[args[0]](parsed_html, args[1]) |
184 | + |
185 | + if options.dry_run: |
186 | + print new_html |
187 | + else: |
188 | + content_file.seek(0) |
189 | + content_file.write(str(new_html)) |
190 | + content_file.truncate() |
191 | + |
192 | + |
193 | +def main(): |
194 | + global options, args |
195 | + |
196 | + if options.module: |
197 | + paths = _get_test_runner(options.module) |
198 | + else: |
199 | + paths = _get_test_runners() |
200 | + |
201 | + modify(paths, options, args) |
202 | + |
203 | + |
204 | +if __name__ == '__main__': |
205 | + try: |
206 | + parser = optparse.OptionParser( |
207 | + formatter=optparse.TitledHelpFormatter(), |
208 | + usage=globals()['__doc__'], version='42') |
209 | + |
210 | + parser.add_option( |
211 | + '--verbose', action='store_true', |
212 | + default=False, help='verbose output') |
213 | + |
214 | + parser.add_option( |
215 | + '--module', action='store', |
216 | + default=None, help='module') |
217 | + |
218 | + parser.add_option( |
219 | + '--dry-run', action='store_true', |
220 | + default=False, help='dry run') |
221 | + |
222 | + (options, args) = parser.parse_args() |
223 | + |
224 | + if len(args) < 1: |
225 | + parser.error('not enough arguments') |
226 | + |
227 | + if args[0] == 'list-changes': |
228 | + for k in CHANGES.keys(): |
229 | + print k |
230 | + else: |
231 | + |
232 | + if len(args) < 2: |
233 | + parser.error('not enough arguments') |
234 | + |
235 | + if not args[1]: |
236 | + parser.error('missing newval') |
237 | + |
238 | + main() |
239 | + |
240 | + sys.exit(0) |
241 | + |
242 | + except KeyboardInterrupt, e: # Ctrl-C |
243 | + raise e |
244 | + except SystemExit, e: # sys.exit() |
245 | + raise e |
246 | + except NotImplementedError: |
247 | + print "error: %s has not been implemented yet" % args[0] |
248 | + os._exit(1) |
249 | + except Exception, e: |
250 | + print 'unexpected error' |
251 | + print str(e) |
252 | + traceback.print_exc() |
253 | + os._exit(1) |
254 | |
255 | === renamed file 'import.sh' => 'scripts/import.sh' |
256 | --- import.sh 2014-02-22 19:13:25 +0000 |
257 | +++ scripts/import.sh 2014-05-15 15:07:26 +0000 |
258 | @@ -2,8 +2,8 @@ |
259 | rm .jshintrc |
260 | find . -name "*.html" -exec sed -i "/filter: .*/d" {} \; |
261 | find . -name "*.html" -exec sed -i "s#../../../../build/one-yui-config/one-yui-config-min.js#../../../../build/config.js#g" {} \; |
262 | -find . -name "*.html" -exec sed -i "s#base: '../../../../../yui/'#base: '../../../../bower_components/yui3/build/'#g" {} \; |
263 | -find . -name "*.html" -exec sed -i "s#../../../../../yui/yui/yui-min.js#../../../../bower_components/yui3/build/yui/yui-min.js#g" {} \; |
264 | +find . -name "*.html" -exec sed -i "s#base: '../../../../../yui/'#base: '../../../../branches/yui/build/'#g" {} \; |
265 | +find . -name "*.html" -exec sed -i "s#../../../../../yui/yui/yui-min.js#../../../../branches/yui/build/yui/yui-min.js#g" {} \; |
266 | find . -name "build.json" -exec sed -i "s/one-//g" {} \; |
267 | find src/ -name "one-*.css" -exec rename 's/one-//g' {} \; |
268 | |
269 | |
270 | === modified file 'src/carousel/tests/unit/index.html' |
271 | --- src/carousel/tests/unit/index.html 2014-03-12 14:09:06 +0000 |
272 | +++ src/carousel/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
273 | @@ -1,18 +1,15 @@ |
274 | -<!doctype html> |
275 | -<meta charset="utf-8" /> |
276 | +<!DOCTYPE html> |
277 | +<html><head><meta charset="utf-8"/> |
278 | <title>carousel Unit Tests</title> |
279 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
280 | - |
281 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
282 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
283 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
284 | <script src="../../../../build/config.js"></script> |
285 | <script> |
286 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
287 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
288 | </script> |
289 | - |
290 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
291 | <script src="../../../../node_modules/chai/chai.js"></script> |
292 | - |
293 | <script> |
294 | var assert = chai.assert; |
295 | var expect = chai.expect; |
296 | @@ -32,7 +29,7 @@ |
297 | } |
298 | }); |
299 | </script> |
300 | - |
301 | -<body> |
302 | - <div id="mocha"></div> |
303 | +</head><body> |
304 | +<div id="mocha"></div> |
305 | </body> |
306 | +</html> |
307 | \ No newline at end of file |
308 | |
309 | === modified file 'src/ga-tracking/tests/unit/index.html' |
310 | --- src/ga-tracking/tests/unit/index.html 2014-03-13 19:26:30 +0000 |
311 | +++ src/ga-tracking/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
312 | @@ -1,18 +1,15 @@ |
313 | -<!doctype html> |
314 | -<meta charset="utf-8" /> |
315 | +<!DOCTYPE html> |
316 | +<html><head><meta charset="utf-8"/> |
317 | <title>ga-tracking Unit Tests</title> |
318 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
319 | - |
320 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
321 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
322 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
323 | <script src="../../../../build/config.js"></script> |
324 | <script> |
325 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
326 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
327 | </script> |
328 | - |
329 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
330 | <script src="../../../../node_modules/chai/chai.js"></script> |
331 | - |
332 | <script> |
333 | var assert = chai.assert; |
334 | var expect = chai.expect; |
335 | @@ -32,7 +29,7 @@ |
336 | } |
337 | }); |
338 | </script> |
339 | - |
340 | -<body> |
341 | - <div id="mocha"></div> |
342 | +</head><body> |
343 | +<div id="mocha"></div> |
344 | </body> |
345 | +</html> |
346 | \ No newline at end of file |
347 | |
348 | === modified file 'src/global-navigation/tests/unit/global-nav-yui.html' |
349 | --- src/global-navigation/tests/unit/global-nav-yui.html 2014-03-07 14:29:41 +0000 |
350 | +++ src/global-navigation/tests/unit/global-nav-yui.html 2014-05-15 15:07:26 +0000 |
351 | @@ -1,7 +1,7 @@ |
352 | -<!doctype html> |
353 | +<!DOCTYPE html> |
354 | <html> |
355 | <head> |
356 | -<meta charset="utf-8"> |
357 | +<meta charset="utf-8"/> |
358 | <title>global-nav Unit Tests</title> |
359 | <script> |
360 | |
361 | @@ -12,20 +12,16 @@ |
362 | |
363 | </script> |
364 | </head> |
365 | - |
366 | <body class="yui3-skin-sam"> |
367 | - |
368 | <div id="log"></div> |
369 | <div id="test"></div> |
370 | - |
371 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
372 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
373 | <script src="../../../../build/config.js"></script> |
374 | - |
375 | <script> |
376 | |
377 | YUI({ |
378 | combine: false, |
379 | - base: '../../../../bower_components/yui3/build/', |
380 | + base: '../../../../branches/yui/build/', |
381 | modules: { |
382 | 'global-nav-test': { |
383 | fullpath: './assets/global-nav-test.js', |
384 | |
385 | === modified file 'src/html5-details/tests/unit/index.html' |
386 | --- src/html5-details/tests/unit/index.html 2014-03-12 14:09:06 +0000 |
387 | +++ src/html5-details/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
388 | @@ -1,18 +1,15 @@ |
389 | -<!doctype html> |
390 | -<meta charset="utf-8" /> |
391 | +<!DOCTYPE html> |
392 | +<html><head><meta charset="utf-8"/> |
393 | <title>html5-details Unit Tests</title> |
394 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
395 | - |
396 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
397 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
398 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
399 | <script src="../../../../build/config.js"></script> |
400 | <script> |
401 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
402 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
403 | </script> |
404 | - |
405 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
406 | <script src="../../../../node_modules/chai/chai.js"></script> |
407 | - |
408 | <script> |
409 | var assert = chai.assert; |
410 | var expect = chai.expect; |
411 | @@ -32,7 +29,7 @@ |
412 | } |
413 | }); |
414 | </script> |
415 | - |
416 | -<body> |
417 | - <div id="mocha"></div> |
418 | +</head><body> |
419 | +<div id="mocha"></div> |
420 | </body> |
421 | +</html> |
422 | \ No newline at end of file |
423 | |
424 | === modified file 'src/myapps-hud/tests/unit/index.html' |
425 | --- src/myapps-hud/tests/unit/index.html 2014-03-18 11:52:47 +0000 |
426 | +++ src/myapps-hud/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
427 | @@ -1,18 +1,15 @@ |
428 | -<!doctype html> |
429 | -<meta charset="utf-8" /> |
430 | +<!DOCTYPE html> |
431 | +<html><head><meta charset="utf-8"/> |
432 | <title>myapps-hud Unit Tests</title> |
433 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
434 | - |
435 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
436 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
437 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
438 | <script src="../../../../build/config.js"></script> |
439 | <script> |
440 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
441 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
442 | </script> |
443 | - |
444 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
445 | <script src="../../../../node_modules/chai/chai.js"></script> |
446 | - |
447 | <script> |
448 | var assert = chai.assert; |
449 | var expect = chai.expect; |
450 | @@ -32,13 +29,13 @@ |
451 | } |
452 | }); |
453 | </script> |
454 | - |
455 | -<body> |
456 | - <div id="mocha"></div> |
457 | - <div id="test"> |
458 | - <div class="app"> |
459 | - <div class="app-hud-wrapper"></div> |
460 | - </div> |
461 | - <div class="footer"></div> |
462 | - </div> |
463 | +</head><body> |
464 | +<div id="mocha"></div> |
465 | +<div id="test"> |
466 | +<div class="app"> |
467 | +<div class="app-hud-wrapper"></div> |
468 | +</div> |
469 | +<div class="footer"></div> |
470 | +</div> |
471 | </body> |
472 | +</html> |
473 | \ No newline at end of file |
474 | |
475 | === modified file 'src/navbar/tests/unit/index.html' |
476 | --- src/navbar/tests/unit/index.html 2014-04-18 16:20:17 +0000 |
477 | +++ src/navbar/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
478 | @@ -1,82 +1,73 @@ |
479 | -<!doctype html> |
480 | -<meta charset="utf-8" /> |
481 | +<!DOCTYPE html> |
482 | +<html><head><meta charset="utf-8"/> |
483 | <title>navbar Unit Tests</title> |
484 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
485 | -<link rel="stylesheet" href="../../../../branches/ulysses/public/ulysses.css"> |
486 | - |
487 | -<body> |
488 | - |
489 | - <div class="ues-navbar" data-qa="navbar-full"> |
490 | - <div class="ues-navbar-header"> |
491 | - <div class="ues-navbar-brand"> |
492 | - <a href="/">[INSERT BRAND IMAGE OR TEXT]</a> |
493 | - </div> |
494 | - </div> |
495 | - <div class="ues-navbar-collapse collapse in"> |
496 | - <div class="ues-navbar-primary-nav"> |
497 | - <ul class="ues-navbar-menu"> |
498 | - <li><a href="">Dashboard</a></li> |
499 | - <li><a href="">Files</a></li> |
500 | - <li><a href="">Photos</a></li> |
501 | - <li><a href="">Music</a></li> |
502 | - </ul> |
503 | - </div> |
504 | - <div class="ues-navbar-secondary-nav"> |
505 | - <ul class="ues-navbar-menu"> |
506 | - <li><a href="">Account</a></li> |
507 | - <li><a href="">Settings</a></li> |
508 | - <li><a href="">Logout</a></li> |
509 | - </ul> |
510 | - </div> |
511 | - </div> |
512 | - </div> |
513 | - |
514 | - <div class="ues-navbar" data-qa="navbar-search"> |
515 | - <div class="ues-navbar-header"> |
516 | - <div class="ues-navbar-brand"> |
517 | - <a href="/">[INSERT BRAND IMAGE OR TEXT]</a> |
518 | - </div> |
519 | - </div> |
520 | - <div class="ues-navbar-collapse collapse in"> |
521 | - <div class="ues-navbar-primary-nav"> |
522 | - <ul class="ues-navbar-menu"> |
523 | - <li><a href="">Dashboard</a></li> |
524 | - <li><a href="">Files</a></li> |
525 | - <li><a href="">Photos</a></li> |
526 | - <li><a href="">Music</a></li> |
527 | - </ul> |
528 | - </div> |
529 | - <ul class="ues-navbar-menu"> |
530 | - <li><a href="">Account</a></li> |
531 | - <li><a href="">Settings</a></li> |
532 | - <li><a href="">Logout</a></li> |
533 | - </ul> |
534 | - </div> |
535 | - <div class="ues-navbar-collapse search autocomplete collapse in"> |
536 | - <div class="ues-navbar-secondary-nav"> |
537 | - <div class="ues-navbar-search"> |
538 | - <i class="ues-icon-search orange smaller"></i> |
539 | - <input class="ues-form-quicksearch" type="search" placeholder="Placeholder"> |
540 | - </div> |
541 | - </div> |
542 | - </div> |
543 | - </div> |
544 | - |
545 | - <div id="mocha"></div> |
546 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
547 | +<link href="../../../../branches/ulysses/public/ulysses.css" rel="stylesheet"/> |
548 | +</head><body> |
549 | +<div class="ues-navbar" data-qa="navbar-full"> |
550 | +<div class="ues-navbar-header"> |
551 | +<div class="ues-navbar-brand"> |
552 | +<a href="/">[INSERT BRAND IMAGE OR TEXT]</a> |
553 | +</div> |
554 | +</div> |
555 | +<div class="ues-navbar-collapse collapse in"> |
556 | +<div class="ues-navbar-primary-nav"> |
557 | +<ul class="ues-navbar-menu"> |
558 | +<li><a href="">Dashboard</a></li> |
559 | +<li><a href="">Files</a></li> |
560 | +<li><a href="">Photos</a></li> |
561 | +<li><a href="">Music</a></li> |
562 | +</ul> |
563 | +</div> |
564 | +<div class="ues-navbar-secondary-nav"> |
565 | +<ul class="ues-navbar-menu"> |
566 | +<li><a href="">Account</a></li> |
567 | +<li><a href="">Settings</a></li> |
568 | +<li><a href="">Logout</a></li> |
569 | +</ul> |
570 | +</div> |
571 | +</div> |
572 | +</div> |
573 | +<div class="ues-navbar" data-qa="navbar-search"> |
574 | +<div class="ues-navbar-header"> |
575 | +<div class="ues-navbar-brand"> |
576 | +<a href="/">[INSERT BRAND IMAGE OR TEXT]</a> |
577 | +</div> |
578 | +</div> |
579 | +<div class="ues-navbar-collapse collapse in"> |
580 | +<div class="ues-navbar-primary-nav"> |
581 | +<ul class="ues-navbar-menu"> |
582 | +<li><a href="">Dashboard</a></li> |
583 | +<li><a href="">Files</a></li> |
584 | +<li><a href="">Photos</a></li> |
585 | +<li><a href="">Music</a></li> |
586 | +</ul> |
587 | +</div> |
588 | +<ul class="ues-navbar-menu"> |
589 | +<li><a href="">Account</a></li> |
590 | +<li><a href="">Settings</a></li> |
591 | +<li><a href="">Logout</a></li> |
592 | +</ul> |
593 | +</div> |
594 | +<div class="ues-navbar-collapse search autocomplete collapse in"> |
595 | +<div class="ues-navbar-secondary-nav"> |
596 | +<div class="ues-navbar-search"> |
597 | +<i class="ues-icon-search orange smaller"></i> |
598 | +<input class="ues-form-quicksearch" placeholder="Placeholder" type="search"/> |
599 | +</div> |
600 | +</div> |
601 | +</div> |
602 | +</div> |
603 | +<div id="mocha"></div> |
604 | </body> |
605 | - |
606 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
607 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
608 | <script src="../../../../build/config.js"></script> |
609 | <script> |
610 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
611 | YUI.GlobalConfig.groups.os.filter = 'debug'; |
612 | </script> |
613 | - |
614 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
615 | <script src="../../../../node_modules/chai/chai.js"></script> |
616 | - |
617 | - |
618 | - |
619 | <script> |
620 | var assert = chai.assert; |
621 | var expect = chai.expect; |
622 | @@ -96,4 +87,4 @@ |
623 | } |
624 | }); |
625 | </script> |
626 | - |
627 | +</html> |
628 | \ No newline at end of file |
629 | |
630 | === modified file 'src/overlay-extras/tests/unit/index.html' |
631 | --- src/overlay-extras/tests/unit/index.html 2014-03-12 14:09:06 +0000 |
632 | +++ src/overlay-extras/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
633 | @@ -1,18 +1,15 @@ |
634 | -<!doctype html> |
635 | -<meta charset="utf-8" /> |
636 | +<!DOCTYPE html> |
637 | +<html><head><meta charset="utf-8"/> |
638 | <title>overlay-extras Unit Tests</title> |
639 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
640 | - |
641 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
642 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
643 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
644 | <script src="../../../../build/config.js"></script> |
645 | <script> |
646 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
647 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
648 | </script> |
649 | - |
650 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
651 | <script src="../../../../node_modules/chai/chai.js"></script> |
652 | - |
653 | <script> |
654 | var assert = chai.assert; |
655 | var expect = chai.expect; |
656 | @@ -32,7 +29,7 @@ |
657 | } |
658 | }); |
659 | </script> |
660 | - |
661 | -<body> |
662 | - <div id="mocha"></div> |
663 | +</head><body> |
664 | +<div id="mocha"></div> |
665 | </body> |
666 | +</html> |
667 | \ No newline at end of file |
668 | |
669 | === modified file 'src/password-meter/tests/unit/password-meter-yui.html' |
670 | --- src/password-meter/tests/unit/password-meter-yui.html 2014-03-07 14:29:41 +0000 |
671 | +++ src/password-meter/tests/unit/password-meter-yui.html 2014-05-15 15:07:26 +0000 |
672 | @@ -1,7 +1,7 @@ |
673 | -<!doctype html> |
674 | +<!DOCTYPE html> |
675 | <html> |
676 | <head> |
677 | -<meta charset="utf-8"> |
678 | +<meta charset="utf-8"/> |
679 | <title>password-meter</title> |
680 | <script> |
681 | |
682 | @@ -14,24 +14,19 @@ |
683 | |
684 | </script> |
685 | </head> |
686 | - |
687 | <body class="yui3-skin-sam"> |
688 | - |
689 | <div id="log"></div> |
690 | <div id="test"></div> |
691 | - |
692 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
693 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
694 | <script src="../../../../build/config.js"></script> |
695 | - |
696 | -<input class="pwd"> |
697 | -<input class="confirmPwd"> |
698 | - |
699 | +<input class="pwd"/> |
700 | +<input class="confirmPwd"/> |
701 | <script> |
702 | |
703 | YUI({ |
704 | // use RAW js, overriding whatever is in YUI_config (cf devsettings.py) |
705 | combine:false, |
706 | - base: '../../../../bower_components/yui3/build/', |
707 | + base: '../../../../branches/yui/build/', |
708 | //fetchCSS: false, |
709 | modules: { |
710 | // define a custom module for our tests |
711 | @@ -54,7 +49,5 @@ |
712 | }); |
713 | |
714 | </script> |
715 | - |
716 | </body> |
717 | </html> |
718 | - |
719 | |
720 | === modified file 'src/plugin-collapse/tests/unit/index.html' |
721 | --- src/plugin-collapse/tests/unit/index.html 2014-03-12 05:08:02 +0000 |
722 | +++ src/plugin-collapse/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
723 | @@ -1,24 +1,19 @@ |
724 | -<!doctype html> |
725 | -<meta charset="utf-8" /> |
726 | +<!DOCTYPE html> |
727 | +<html><head><meta charset="utf-8"/> |
728 | <title>plugin-collapse Unit Tests</title> |
729 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
730 | - |
731 | -<body> |
732 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
733 | +</head><body> |
734 | <div class="test">this is some stuff</div> |
735 | - <div id="mocha"></div> |
736 | +<div id="mocha"></div> |
737 | </body> |
738 | - |
739 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
740 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
741 | <script src="../../../../build/config.js"></script> |
742 | <script> |
743 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
744 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
745 | </script> |
746 | - |
747 | - |
748 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
749 | <script src="../../../../node_modules/chai/chai.js"></script> |
750 | - |
751 | <script> |
752 | var assert = chai.assert; |
753 | var expect = chai.expect; |
754 | @@ -28,9 +23,7 @@ |
755 | mocha.ui('bdd'); |
756 | mocha.setup({ignoreLeaks: false, timeout: 10000}); |
757 | </script> |
758 | - |
759 | <script src="js/tests.js"></script> |
760 | - |
761 | <script> |
762 | YUI().use('node', function(Y) { |
763 | if (window.mochaPhantomJS) { |
764 | @@ -40,4 +33,4 @@ |
765 | } |
766 | }); |
767 | </script> |
768 | - |
769 | +</html> |
770 | \ No newline at end of file |
771 | |
772 | === modified file 'src/plugin-jit-bar/tests/unit/plugin-jit-bar-yui.html' |
773 | --- src/plugin-jit-bar/tests/unit/plugin-jit-bar-yui.html 2014-03-07 14:29:41 +0000 |
774 | +++ src/plugin-jit-bar/tests/unit/plugin-jit-bar-yui.html 2014-05-15 15:07:26 +0000 |
775 | @@ -1,7 +1,7 @@ |
776 | -<!doctype html> |
777 | +<!DOCTYPE html> |
778 | <html> |
779 | <head> |
780 | -<meta charset="utf-8"> |
781 | +<meta charset="utf-8"/> |
782 | <title>Plugin-Jit-Bar Tests</title> |
783 | <script> |
784 | |
785 | @@ -14,21 +14,17 @@ |
786 | |
787 | </script> |
788 | </head> |
789 | - |
790 | <body class="yui3-skin-sam"> |
791 | - |
792 | <div id="log"></div> |
793 | <div id="test"></div> |
794 | - |
795 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
796 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
797 | <script src="../../../../build/config.js"></script> |
798 | - |
799 | <script> |
800 | |
801 | YUI({ |
802 | // use RAW js, overriding whatever is in YUI_config (cf devsettings.py) |
803 | combine:false, |
804 | - base: '../../../../bower_components/yui3/build/', |
805 | + base: '../../../../branches/yui/build/', |
806 | //fetchCSS: false, |
807 | modules: { |
808 | // define a custom module for our tests |
809 | @@ -51,7 +47,5 @@ |
810 | }); |
811 | |
812 | </script> |
813 | - |
814 | </body> |
815 | </html> |
816 | - |
817 | |
818 | === modified file 'src/rangyinputs/tests/unit/rangyinputs-yui.html' |
819 | --- src/rangyinputs/tests/unit/rangyinputs-yui.html 2014-03-07 14:29:41 +0000 |
820 | +++ src/rangyinputs/tests/unit/rangyinputs-yui.html 2014-05-15 15:07:26 +0000 |
821 | @@ -1,7 +1,7 @@ |
822 | -<!doctype html> |
823 | +<!DOCTYPE html> |
824 | <html> |
825 | <head> |
826 | -<meta charset="utf-8"> |
827 | +<meta charset="utf-8"/> |
828 | <title>Rangyinputs Unit Tests</title> |
829 | <script> |
830 | |
831 | @@ -12,20 +12,16 @@ |
832 | |
833 | </script> |
834 | </head> |
835 | - |
836 | <body class="yui3-skin-sam"> |
837 | - |
838 | <div id="log"></div> |
839 | -<input id="test"> |
840 | - |
841 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
842 | +<input id="test"/> |
843 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
844 | <script src="../../../../build/config.js"></script> |
845 | - |
846 | <script> |
847 | |
848 | YUI({ |
849 | combine: false, |
850 | - base: '../../../../bower_components/yui3/build/', |
851 | + base: '../../../../branches/yui/build/', |
852 | modules: { |
853 | 'rangyinputs-test': { |
854 | fullpath: './assets/rangyinputs.js', |
855 | |
856 | === modified file 'src/searchbar/tests/unit/index.html' |
857 | --- src/searchbar/tests/unit/index.html 2014-05-14 09:49:12 +0000 |
858 | +++ src/searchbar/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
859 | @@ -1,33 +1,25 @@ |
860 | -<!doctype html> |
861 | -<meta charset="utf-8" /> |
862 | +<!DOCTYPE html> |
863 | +<html><head><meta charset="utf-8"/> |
864 | <title>searchbar Unit Tests</title> |
865 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
866 | -<link rel="stylesheet" href="../../../../branches/ulysses/public/ulysses.css"> |
867 | - |
868 | -<body> |
869 | - |
870 | - |
871 | - <div id="mocha"></div> |
872 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
873 | +<link href="../../../../branches/ulysses/public/ulysses.css" rel="stylesheet"/> |
874 | +</head><body> |
875 | +<div id="mocha"></div> |
876 | </body> |
877 | - |
878 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
879 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
880 | <script src="../../../../build/config.js"></script> |
881 | <script> |
882 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
883 | YUI.GlobalConfig.groups.os.filter = 'debug'; |
884 | </script> |
885 | - |
886 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
887 | <script src="../../../../node_modules/chai/chai.js"></script> |
888 | - |
889 | -<div id="searchbar" class="ues-searchbar" data-qa="searchbar-autocomplete"> |
890 | - <div class="ues-searchbar-search"> |
891 | - <i class="ues-icon-search orange smaller"></i> |
892 | - <input class="ues-form-quicksearch" type="search" placeholder="Placeholder"> |
893 | - </div> |
894 | -</div> |
895 | - |
896 | - |
897 | +<div class="ues-searchbar" data-qa="searchbar-autocomplete" id="searchbar"> |
898 | +<div class="ues-searchbar-search"> |
899 | +<i class="ues-icon-search orange smaller"></i> |
900 | +<input class="ues-form-quicksearch" placeholder="Placeholder" type="search"/> |
901 | +</div> |
902 | +</div> |
903 | <script> |
904 | var assert = chai.assert; |
905 | var expect = chai.expect; |
906 | @@ -51,4 +43,4 @@ |
907 | } |
908 | }); |
909 | </script> |
910 | - |
911 | +</html> |
912 | \ No newline at end of file |
913 | |
914 | === modified file 'src/uploader-augmented/tests/unit/uploader-tests-yui.html' |
915 | --- src/uploader-augmented/tests/unit/uploader-tests-yui.html 2014-03-12 20:41:35 +0000 |
916 | +++ src/uploader-augmented/tests/unit/uploader-tests-yui.html 2014-05-15 15:07:26 +0000 |
917 | @@ -1,7 +1,7 @@ |
918 | -<!doctype html> |
919 | +<!DOCTYPE html> |
920 | <html> |
921 | <head> |
922 | -<meta charset="utf-8"> |
923 | +<meta charset="utf-8"/> |
924 | <title>uploader-augmented tests</title> |
925 | <script> |
926 | |
927 | @@ -14,23 +14,18 @@ |
928 | |
929 | </script> |
930 | </head> |
931 | - |
932 | <body class="yui3-skin-sam"> |
933 | - |
934 | <div id="log"></div> |
935 | <div id="test"></div> |
936 | - |
937 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
938 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
939 | <script src="../../../../build/config.js"></script> |
940 | - |
941 | <div class="uploader"></div> |
942 | - |
943 | <script> |
944 | |
945 | YUI({ |
946 | // use RAW js, overriding whatever is in YUI_config (cf devsettings.py) |
947 | combine:false, |
948 | - base: '../../../../bower_components/yui3/build/', |
949 | + base: '../../../../branches/yui/build/', |
950 | //fetchCSS: false, |
951 | modules: { |
952 | // define a custom module for our tests |
953 | @@ -53,7 +48,5 @@ |
954 | }); |
955 | |
956 | </script> |
957 | - |
958 | </body> |
959 | </html> |
960 | - |
961 | |
962 | === modified file 'src/uploader-myapps-packages-for-extraction/tests/unit/index.html' |
963 | --- src/uploader-myapps-packages-for-extraction/tests/unit/index.html 2014-03-12 20:41:35 +0000 |
964 | +++ src/uploader-myapps-packages-for-extraction/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
965 | @@ -1,18 +1,15 @@ |
966 | -<!doctype html> |
967 | -<meta charset="utf-8" /> |
968 | +<!DOCTYPE html> |
969 | +<html><head><meta charset="utf-8"/> |
970 | <title>uploader-myapps-packages-for-extraction Unit Tests</title> |
971 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
972 | - |
973 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
974 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
975 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
976 | <script src="../../../../build/config.js"></script> |
977 | <script> |
978 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
979 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
980 | </script> |
981 | - |
982 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
983 | <script src="../../../../node_modules/chai/chai.js"></script> |
984 | - |
985 | <script> |
986 | var assert = chai.assert; |
987 | var expect = chai.expect; |
988 | @@ -32,7 +29,7 @@ |
989 | } |
990 | }); |
991 | </script> |
992 | - |
993 | -<body> |
994 | - <div id="mocha"></div> |
995 | +</head><body> |
996 | +<div id="mocha"></div> |
997 | </body> |
998 | +</html> |
999 | \ No newline at end of file |
1000 | |
1001 | === modified file 'src/uploader-myapps-packages/tests/unit/index.html' |
1002 | --- src/uploader-myapps-packages/tests/unit/index.html 2014-03-12 20:41:35 +0000 |
1003 | +++ src/uploader-myapps-packages/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
1004 | @@ -1,18 +1,15 @@ |
1005 | -<!doctype html> |
1006 | -<meta charset="utf-8" /> |
1007 | +<!DOCTYPE html> |
1008 | +<html><head><meta charset="utf-8"/> |
1009 | <title>uploader-myapps-packages Unit Tests</title> |
1010 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
1011 | - |
1012 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
1013 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
1014 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
1015 | <script src="../../../../build/config.js"></script> |
1016 | <script> |
1017 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
1018 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
1019 | </script> |
1020 | - |
1021 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
1022 | <script src="../../../../node_modules/chai/chai.js"></script> |
1023 | - |
1024 | <script> |
1025 | var assert = chai.assert; |
1026 | var expect = chai.expect; |
1027 | @@ -32,7 +29,7 @@ |
1028 | } |
1029 | }); |
1030 | </script> |
1031 | - |
1032 | -<body> |
1033 | - <div id="mocha"></div> |
1034 | +</head><body> |
1035 | +<div id="mocha"></div> |
1036 | </body> |
1037 | +</html> |
1038 | \ No newline at end of file |
1039 | |
1040 | === modified file 'src/uploader-myapps/tests/unit/index.html' |
1041 | --- src/uploader-myapps/tests/unit/index.html 2014-03-12 20:41:35 +0000 |
1042 | +++ src/uploader-myapps/tests/unit/index.html 2014-05-15 15:07:26 +0000 |
1043 | @@ -1,18 +1,15 @@ |
1044 | -<!doctype html> |
1045 | -<meta charset="utf-8" /> |
1046 | +<!DOCTYPE html> |
1047 | +<html><head><meta charset="utf-8"/> |
1048 | <title>uploader-myapps Unit Tests</title> |
1049 | -<link rel="stylesheet" href="../../../../node_modules/mocha/mocha.css"> |
1050 | - |
1051 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
1052 | +<link href="../../../../node_modules/mocha/mocha.css" rel="stylesheet"/> |
1053 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
1054 | <script src="../../../../build/config.js"></script> |
1055 | <script> |
1056 | YUI.GlobalConfig.groups.os.base = '../../../../build/'; |
1057 | YUI.GlobalConfig.groups.os.filter = 'RAW'; |
1058 | </script> |
1059 | - |
1060 | <script src="../../../../node_modules/mocha/mocha.js"></script> |
1061 | <script src="../../../../node_modules/chai/chai.js"></script> |
1062 | - |
1063 | <script> |
1064 | var assert = chai.assert; |
1065 | var expect = chai.expect; |
1066 | @@ -32,7 +29,7 @@ |
1067 | } |
1068 | }); |
1069 | </script> |
1070 | - |
1071 | -<body> |
1072 | - <div id="mocha"></div> |
1073 | +</head><body> |
1074 | +<div id="mocha"></div> |
1075 | </body> |
1076 | +</html> |
1077 | \ No newline at end of file |
1078 | |
1079 | === modified file 'src/util/tests/unit/oops-yui.html' |
1080 | --- src/util/tests/unit/oops-yui.html 2014-03-07 14:29:41 +0000 |
1081 | +++ src/util/tests/unit/oops-yui.html 2014-05-15 15:07:26 +0000 |
1082 | @@ -1,7 +1,7 @@ |
1083 | -<!doctype html> |
1084 | +<!DOCTYPE html> |
1085 | <html> |
1086 | <head> |
1087 | -<meta charset="utf-8"> |
1088 | +<meta charset="utf-8"/> |
1089 | <title>util-oops</title> |
1090 | <script> |
1091 | |
1092 | @@ -14,22 +14,18 @@ |
1093 | |
1094 | </script> |
1095 | </head> |
1096 | - |
1097 | <body class="yui3-skin-sam"> |
1098 | - |
1099 | <div id="log"></div> |
1100 | <div id="test"></div> |
1101 | - |
1102 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
1103 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
1104 | <script src="../../../../build/config.js"></script> |
1105 | - |
1106 | <script> |
1107 | |
1108 | YUI({ |
1109 | coverage: ['util-oops'], |
1110 | // use RAW js, overriding whatever is in YUI_config (cf devsettings.py) |
1111 | combine:0, |
1112 | - base: '../../../../bower_components/yui3/build/', |
1113 | + base: '../../../../branches/yui/build/', |
1114 | //fetchCSS: false, |
1115 | modules: { |
1116 | // define a custom module for our tests |
1117 | @@ -52,7 +48,5 @@ |
1118 | }); |
1119 | |
1120 | </script> |
1121 | - |
1122 | </body> |
1123 | </html> |
1124 | - |
1125 | |
1126 | === modified file 'src/util/tests/unit/util-yui.html' |
1127 | --- src/util/tests/unit/util-yui.html 2014-03-07 14:29:41 +0000 |
1128 | +++ src/util/tests/unit/util-yui.html 2014-05-15 15:07:26 +0000 |
1129 | @@ -1,7 +1,7 @@ |
1130 | -<!doctype html> |
1131 | +<!DOCTYPE html> |
1132 | <html> |
1133 | <head> |
1134 | -<meta charset="utf-8"> |
1135 | +<meta charset="utf-8"/> |
1136 | <title>Util Tests</title> |
1137 | <script> |
1138 | |
1139 | @@ -14,22 +14,18 @@ |
1140 | |
1141 | </script> |
1142 | </head> |
1143 | - |
1144 | <body class="yui3-skin-sam"> |
1145 | - |
1146 | <div id="log"></div> |
1147 | <div id="test"></div> |
1148 | - |
1149 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
1150 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
1151 | <script src="../../../../build/config.js"></script> |
1152 | - |
1153 | <script> |
1154 | |
1155 | YUI({ |
1156 | coverage: ['util-share'], |
1157 | // use RAW js, overriding whatever is in YUI_config (cf devsettings.py) |
1158 | combine:0, |
1159 | - base: '../../../../bower_components/yui3/build/', |
1160 | + base: '../../../../branches/yui/build/', |
1161 | //fetchCSS: false, |
1162 | modules: { |
1163 | // define a custom module for our tests |
1164 | @@ -52,7 +48,5 @@ |
1165 | }); |
1166 | |
1167 | </script> |
1168 | - |
1169 | </body> |
1170 | </html> |
1171 | - |
1172 | |
1173 | === modified file 'src/widget-cc-input/tests/unit/index-yui.html' |
1174 | --- src/widget-cc-input/tests/unit/index-yui.html 2014-03-07 14:29:41 +0000 |
1175 | +++ src/widget-cc-input/tests/unit/index-yui.html 2014-05-15 15:07:26 +0000 |
1176 | @@ -1,7 +1,7 @@ |
1177 | -<!doctype html> |
1178 | +<!DOCTYPE html> |
1179 | <html> |
1180 | <head> |
1181 | -<meta charset="utf-8"> |
1182 | +<meta charset="utf-8"/> |
1183 | <title>Unit Tests</title> |
1184 | <script> |
1185 | |
1186 | @@ -14,54 +14,46 @@ |
1187 | |
1188 | </script> |
1189 | </head> |
1190 | - |
1191 | <body class="yui3-skin-sam"> |
1192 | - |
1193 | <form action="#"> |
1194 | - <div class=ccinput> |
1195 | - |
1196 | - <div class=ccinput-input-container> |
1197 | - <input type=text class=ccinput-ccn autocomplete=off /> |
1198 | - <select class=ccinput-issuer autocomplete=off> |
1199 | - <option name="visa">Visa</option> |
1200 | - <option name="mastercard">Mastercard</option> |
1201 | - <option name="amex">American Express</option> |
1202 | - <option name="discover">Discover</option> |
1203 | - <option name="diners">Diners</option> |
1204 | - <option name="jcb">JCB</option> |
1205 | - <option name="dankort">Dankort</option> |
1206 | - </select> |
1207 | - <input type=text class=ccinput-expires autocomplete=off /> |
1208 | - <input type=text class=ccinput-csc autocomplete=off /> |
1209 | - </div> |
1210 | - |
1211 | - <div class=ccinput-mask-container><div class=ccinput-guide><span class=ccinput-ccn></span><span> </span><span class=ccinput-date></span><span> </span><span class=ccinput-csc></span></div> |
1212 | - <input type=tel class=ccinput-mask autocomplete=off> |
1213 | - </div> |
1214 | - <div class=ccinput-message> |
1215 | - <div class=ccinput-valid>✓</div> |
1216 | - <ul class=ccinput-error> |
1217 | - <li>Sorry, card number is from unrecognised/invalid provider, we accept Visa, Mastercard, American Express, Diners, Discovery, JCB, and Dankort.</li> |
1218 | - <li>Card number is invalid, please check and try again</li> |
1219 | - <li>Date is invalid, must be valid month and year (MMYY)</li> |
1220 | - <li>Card Security Code/Number is too short</li> |
1221 | - </ul> |
1222 | - </div> |
1223 | - <div class=ccinput-button></div> |
1224 | - |
1225 | - </div> |
1226 | +<div class="ccinput"> |
1227 | +<div class="ccinput-input-container"> |
1228 | +<input autocomplete="off" class="ccinput-ccn" type="text"/> |
1229 | +<select autocomplete="off" class="ccinput-issuer"> |
1230 | +<option name="visa">Visa</option> |
1231 | +<option name="mastercard">Mastercard</option> |
1232 | +<option name="amex">American Express</option> |
1233 | +<option name="discover">Discover</option> |
1234 | +<option name="diners">Diners</option> |
1235 | +<option name="jcb">JCB</option> |
1236 | +<option name="dankort">Dankort</option> |
1237 | +</select> |
1238 | +<input autocomplete="off" class="ccinput-expires" type="text"/> |
1239 | +<input autocomplete="off" class="ccinput-csc" type="text"/> |
1240 | +</div> |
1241 | +<div class="ccinput-mask-container"><div class="ccinput-guide"><span class="ccinput-ccn"></span><span> </span><span class="ccinput-date"></span><span> </span><span class="ccinput-csc"></span></div> |
1242 | +<input autocomplete="off" class="ccinput-mask" type="tel"/> |
1243 | +</div> |
1244 | +<div class="ccinput-message"> |
1245 | +<div class="ccinput-valid">✓</div> |
1246 | +<ul class="ccinput-error"> |
1247 | +<li>Sorry, card number is from unrecognised/invalid provider, we accept Visa, Mastercard, American Express, Diners, Discovery, JCB, and Dankort.</li> |
1248 | +<li>Card number is invalid, please check and try again</li> |
1249 | +<li>Date is invalid, must be valid month and year (MMYY)</li> |
1250 | +<li>Card Security Code/Number is too short</li> |
1251 | +</ul> |
1252 | +</div> |
1253 | +<div class="ccinput-button"></div> |
1254 | +</div> |
1255 | </form> |
1256 | - |
1257 | <div id="test"></div> |
1258 | - |
1259 | -<script src="../../../../bower_components/yui3/build/yui/yui-min.js"></script> |
1260 | +<script id="yui-src" src="../../../../branches/yui/build/yui/yui-min.js"></script> |
1261 | <script src="../../../../build/config.js"></script> |
1262 | <script src="./assets/input.js"></script> |
1263 | - |
1264 | <script> |
1265 | |
1266 | YUI({ |
1267 | - base: '../../../../bower_components/yui3/build/', |
1268 | + base: '../../../../branches/yui/build/', |
1269 | combine:0, |
1270 | groups: { |
1271 | 'os': { |
1272 | @@ -80,7 +72,5 @@ |
1273 | }); |
1274 | |
1275 | </script> |
1276 | - |
1277 | </body> |
1278 | </html> |
1279 | - |
1280 | |
1281 | === added file 'tarmac_verify.sh' |
1282 | --- tarmac_verify.sh 1970-01-01 00:00:00 +0000 |
1283 | +++ tarmac_verify.sh 2014-05-15 15:07:26 +0000 |
1284 | @@ -0,0 +1,6 @@ |
1285 | +#!/bin/bash -e |
1286 | +GRUNT=./node_modules/.bin/grunt |
1287 | + |
1288 | +npm --silent i |
1289 | + |
1290 | +$GRUNT --no-color verify |
> +$GRUNT --no-color bootstrap grover mocha
Maybe add a 'verify' task to grunt which contains these 3, will a comment explaining that this is the command tarmac runs.
Otherwise WFM.