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

Unified Diff: sky/HACKING.md

Issue 679583002: Fill in some missing sections in the Sky README.md (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/README.md » ('j') | sky/README.md » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/HACKING.md
diff --git a/sky/HACKING.md b/sky/HACKING.md
index e53c80d69d9946dcdc9e7f3e542b9318a8282137..65f881100785f80b3e58ef78fe0aca28927f910b 100644
--- a/sky/HACKING.md
+++ b/sky/HACKING.md
@@ -4,42 +4,39 @@ Hacking on Sky
Building
--------
-* Follow the setup & build instructions for [mojo](https://github.com/domokit/mojo)
+* Follow the setup & build instructions for [Mojo](https://github.com/domokit/mojo)
* Build ``sky`` with ``ninja``, e.g. ``ninja -C out/Debug sky``
Running applications
--------------------
-* ``./sky/tools/skydb --debug``
+* ``./sky/tools/skydb [url]``
* You should see a ``(skydb)`` prompt
* Type ``help`` to see the list of available commands
- * The most common command is to load a URL, which youc an do simply by typing
- the URL. To reload the current page, type enter.
* ``./sky/tools/test_sky --debug``
* This should run the tests
Running tests manually
-----------------------------
+----------------------
- * ``sky/tools/run_sky_httpd``
- * ``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``
- * The ``sky_tester`` should print ``#READY`` when ready
- * Type the URL you wish to run, for example ``http://127.0.0.1:8000/lowlevel/text.html``, and press the enter key
- * The harness should print the results of the test. You can then type another URL.
+* ``sky/tools/run_sky_httpd``
+* ``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``
+* The ``sky_tester`` should print ``#READY`` when ready
+* Type the URL you wish to run, for example ``http://127.0.0.1:8000/lowlevel/text.html``, and press the enter key
+* The harness should print the results of the test. You can then type another URL.
Writing tests
-------------
-* Import ``tests/http/tests/resources/mocha.html``
+* Import ``resources/mocha.html`` and ``resources/chai.html``
* Write tests in [mocha format](http://visionmedia.github.io/mocha/#getting-started) and use [chai asserts](http://chaijs.com/api/assert/):
-```
+```html
describe('My pretty test of my subject', function() {
var subject = new MySubject();
it('should be pretty', function() {
assert.ok(subject.isPretty);
});
-
});
```
« no previous file with comments | « no previous file | sky/README.md » ('j') | sky/README.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698