This file contains test cases that should be manually executed.
The following HTML-runners must be manually tested:
examples/helloworld/helloworld-2.12{|-fastopt}.html
examples/reversi/reversi-2.12{|-fastopt}.html
Still manual, because jsdom does not support modules yet jsdom/jsdom#2475.
$ sbt
> set scalaJSLinkerConfig in testingExample.v2_12 ~= (_.withModuleSplitStyle(ModuleSplitStyle.SmallestModules).withModuleKind(ModuleKind.ESModule))
> testingExample2_12/testHtml
> set scalaJSLinkerConfig in testSuite.v2_12 ~= (_.withModuleKind(ModuleKind.ESModule))
> testSuite2_12/testHtml
> exit
$ python3 -m http.server
// Open http://localhost:8000/examples/testing/.2.12/target/scala-2.12/testing-fastopt-test-html/index.html
// Open http://localhost:8000/test-suite/js/.2.12/target/scala-2.12/scalajs-test-suite-fastopt-test-html/index.html
To test source maps, do the following on:
examples/reversi/reversi-2.12{|-fastopt}.html
- Open the respective file in Google Chrome
- Set a break-point in the HTML launcher on the
new Reversi
statement - Step over calls to jQuery into constructor
- Step into the call to
Array.tabulate
and verify that source maps to Scala standard library sources work (should point to GitHub) - Single step through constructor, until you reach
buildUI()
- Step into
buildUI()
Once all tests pass, tag the revision and verify that source maps to Scala.js sources work correctly (should point to GitHub), following the steps described in the section Sourcemaps.