Confirmed users
401
edits
(→Target) |
|||
Line 16: | Line 16: | ||
The stage’s target is to make sure we could have the following pattern: | The stage’s target is to make sure we could have the following pattern: | ||
<pre> | |||
// in bootstrap.js (main function, one line only expected.) | // in bootstrap.js (main function, one line only expected.) | ||
new System(); | new System(); | ||
Line 24: | Line 24: | ||
this.appWindowManager = new AppWindowManager(this); | this.appWindowManager = new AppWindowManager(this); | ||
this.screenManager = new ScreenManager(this); | this.screenManager = new ScreenManager(this); | ||
</pre> | |||
With this pattern we are able to do unit test anywhere, | With this pattern we are able to do unit test anywhere, |