forked from scala-js/scala-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTESTING
35 lines (23 loc) · 1.14 KB
/
TESTING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
This file contains test cases that should be manually executed.
## HTML-Runners
The following HTML-runners must be manually tested:
examples/helloworld/helloworld-{2.11|2.12}{|-fastopt}.html
examples/reversi/reversi-{2.11|2.12}{|-fastopt}.html
The following sbt-plugin generated test runners must be manually tested (with
Scala 2.11 and 2.12, and in `FastOptStage` and `FullOptStage`):
testingExample/testHtml
testSuite/testHtml
## Sourcemaps
To test source maps, do the following on:
examples/reversi/reversi-{2.11|2.12}{|-fastopt}.html
1. Open the respective file in Google Chrome
2. Set a break-point in the HTML launcher on the `new Reversi` statement
3. Step over calls to jQuery into constructor
4. Step into the call to `Array.tabulate` and verify that source maps
to Scala standard library sources work (should point to GitHub)
5. Single step through constructor, until you reach `buildUI()`
6. Step into `buildUI()`
## When releasing only
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.