tree: 380389b2bfcc031fb5925c00151ea53ba64af381 [path history] [tgz]
  1. data/
  2. shell_data/
  3. DEPS
  4. OWNERS
  5. README.md
  6. run_all_unittests.cc
  7. test_data.cc
  8. test_data.h
  9. web_engine_browser_test.cc
  10. web_engine_browser_test.h
  11. web_engine_shell.cc
  12. web_engine_shell.cmx
  13. web_engine_test_launcher.cc
fuchsia/engine/test/README.md

Web Engine Shell

The Web Engine Shell is a simple command-line executable which will create a fullscreen browsing session and navigate it to a specified URL. It can be used for validating web platform features, or it can serve as example code for embedding Web Engine in C++ applications.

Usage To build and run Web Engine Shell, execute the following commands:

$ autoninja -C $OUTDIR web_engine_shell
$ $OUTDIR/bin/install_web_engine_shell --fuchsia-out-dir $FUCHSIA_OUTDIR
$ cd $FUCHSIA
$ fx shell
$ run fuchsia-pkg://fuchsia.com/web_engine_shell#meta/web_engine_shell.cmx --remote-debugging-port=1234 http://www.example.com

Local files can be deployed with the Web Engine Shell and accessed via the URL fuchsia-dir://shell-data/PATH/TO/FILE. Files may be added to the directory by placing them under the path //fuchsia/engine/test/shell_data.

Here is an example command line which loads a local file:

$ run fuchsia-pkg://fuchsia.com/web_engine_shell#meta/web_engine_shell.cmx fuchsia-dir://shell-data/index.html