X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Femscripten.md;h=9960e356a7b432d16fd88180f516f09a22815988;hb=85fb989437f48082146d91e0f092f6b97d1a9df5;hp=81c963e27ec46b7fbcebffd81a045430b244bbd6;hpb=469f5a14469849a28463710288da51a34a40e9da;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/emscripten.md b/docs/content/shared-javascript-and-cpp-documentation/emscripten.md index 81c963e..9960e35 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/emscripten.md +++ b/docs/content/shared-javascript-and-cpp-documentation/emscripten.md @@ -16,9 +16,9 @@ This can then be run within a web browser at near native speed (without plugins) Dali-Core can be built using with Emscripten producing a Javascript version of DALi. A web page can then be made with HTML, and by embedding Javascript can reference and control the DALi Javascript canvas. -This allows you to have a DALi canvas within a webpage that can either: +This allows you to have a DALi canvas within a web page that can either: - Run autonomously -- Be controlled by HTML / Javascript controls elsewhere on the webpage +- Be controlled by HTML / Javascript controls elsewhere on the web page The necessary scripts for building are included within each DALi repository. @@ -33,9 +33,9 @@ In summary, this process involves: - Building dali-adaptor Emscripten replacement with a separate build script found in dali-adaptor - Installing the examples within the dali-demo repository -## Build Artefacts {#emscripten-artefacts} +## Build Artifacts {#emscripten-artifacts} -Each step in the build process will produce artefacts that will be written to the DALi environment directory. +Each step in the build process will produce artifacts that will be written to the DALi environment directory. - dali-core: Produces a dali-core.so in bytecode. - dali-adaptor: Produces: @@ -94,14 +94,14 @@ chromium-browser ./dali-doc-demo.html # Running The Live Unit Tests {#emscripten-tests} Included are some live unit tests. -These run as a webpage within a browser, a DALi canvas is created and used to run each test. +These run as a web page within a browser, a DALi canvas is created and used to run each test. The QUnit test suite is used (included within the repository for compatibility). ![ ](../assets/img/emscripten/emscripten-tests.png) ![ ](./emscripten-tests.png)
-For the tests to work correctly, the webpage should be run through a webserver, rather than directly with a browser. +For the tests to work correctly, the web page should be run through a web server, rather than directly with a browser. This can be achieved simply using npms's zero configuration command line server: "http-server". To install "http-server":