Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Side by Side Diff: sky/HACKING.md

Issue 796893004: Update mochajs documentation link. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Hacking on Sky 1 Hacking on Sky
2 ============== 2 ==============
3 3
4 Building 4 Building
5 -------- 5 --------
6 6
7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo jo) 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo jo)
8 8
9 Running applications 9 Running applications
10 -------------------- 10 --------------------
(...skipping 13 matching lines...) Expand all
24 * ``sky/tools/run_sky_httpd`` 24 * ``sky/tools/run_sky_httpd``
25 * ``out/Debug/mojo_shell --args-for="mojo:native_viewport_service --use-headless -config" --content-handlers=text/html,mojo:sky_viewer --url-mappings=mojo:window _manager=mojo:sky_tester mojo:window_manager`` 25 * ``out/Debug/mojo_shell --args-for="mojo:native_viewport_service --use-headless -config" --content-handlers=text/html,mojo:sky_viewer --url-mappings=mojo:window _manager=mojo:sky_tester mojo:window_manager``
26 * The ``sky_tester`` should print ``#READY`` when ready 26 * The ``sky_tester`` should print ``#READY`` when ready
27 * Type the URL you wish to run, for example ``http://127.0.0.1:8000/lowlevel/tex t.html``, and press the enter key 27 * Type the URL you wish to run, for example ``http://127.0.0.1:8000/lowlevel/tex t.html``, and press the enter key
28 * The harness should print the results of the test. You can then type another U RL. 28 * The harness should print the results of the test. You can then type another U RL.
29 29
30 Writing tests 30 Writing tests
31 ------------- 31 -------------
32 32
33 * Import ``resources/mocha.html`` and ``resources/chai.html`` 33 * Import ``resources/mocha.html`` and ``resources/chai.html``
34 * Write tests in [mocha format](http://visionmedia.github.io/mocha/#getting-star ted) and use [chai asserts](http://chaijs.com/api/assert/): 34 * Write tests in [mocha format](http://mochajs.org/#getting-started) and use [ch ai asserts](http://chaijs.com/api/assert/):
35 ```html 35 ```html
36 describe('My pretty test of my subject', function() { 36 describe('My pretty test of my subject', function() {
37 var subject = new MySubject(); 37 var subject = new MySubject();
38 38
39 it('should be pretty', function() { 39 it('should be pretty', function() {
40 assert.ok(subject.isPretty); 40 assert.ok(subject.isPretty);
41 }); 41 });
42 }); 42 });
43 ``` 43 ```
44 44
(...skipping 13 matching lines...) Expand all
58 58
59 Copying the file to googlestorage: 59 Copying the file to googlestorage:
60 $ sha1sum ../out/Debug/layout-test-results/framework/flights-app-pixels-actual.p ng 60 $ sha1sum ../out/Debug/layout-test-results/framework/flights-app-pixels-actual.p ng
61 db0508cdfe69e996a93464050dc383f6480f1283 ../out/Debug/layout-test-results/frame work/flights-app-pixels-actual.png 61 db0508cdfe69e996a93464050dc383f6480f1283 ../out/Debug/layout-test-results/frame work/flights-app-pixels-actual.png
62 $ gsutil.py cp ../out/Debug/layout-test-results/framework/flights-app-pixels-act ual.png gs://mojo/sky-pngs/db0508cdfe69e996a93464050dc383f6480f1283 62 $ gsutil.py cp ../out/Debug/layout-test-results/framework/flights-app-pixels-act ual.png gs://mojo/sky-pngs/db0508cdfe69e996a93464050dc383f6480f1283
63 63
64 Long-term, we should not have these tests at all and should just 64 Long-term, we should not have these tests at all and should just
65 dump paint commands. In the short-term, if we find we're doing this 65 dump paint commands. In the short-term, if we find we're doing this
66 a lot we should obviously automate this process, e.g. test_sky could 66 a lot we should obviously automate this process, e.g. test_sky could
67 do all of this work, including spitting out the correct reference file. 67 do all of this work, including spitting out the correct reference file.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698