ko-archetype/src/main/resources/archetype-resources/src/test/java/IntegrationTest.java
1.1 --- a/ko-archetype/src/main/resources/archetype-resources/src/test/java/IntegrationTest.java Mon May 13 11:39:33 2013 +0200
1.2 +++ b/ko-archetype/src/main/resources/archetype-resources/src/test/java/IntegrationTest.java Mon May 13 14:25:37 2013 +0200
1.3 @@ -1,6 +1,5 @@
1.4 package ${package};
1.5
1.6 -import org.apidesign.bck2brwsr.htmlpage.api.OnEvent;
1.7 import org.apidesign.bck2brwsr.vmtest.BrwsrTest;
1.8 import org.apidesign.bck2brwsr.vmtest.HtmlFragment;
1.9 import org.apidesign.bck2brwsr.vmtest.VMTest;
1.10 @@ -11,8 +10,6 @@
1.11 * and that is it. If your code references elements on the HTML page,
1.12 * you can pass in an {@link org.apidesign.bck2brwsr.vmtest.HtmlFragment} which
1.13 * will be made available on the page before your test starts.
1.14 - *
1.15 - * @author Jaroslav Tulach <jtulach@netbeans.org>
1.16 */
1.17 public class IntegrationTest {
1.18
1.19 @@ -20,22 +17,10 @@
1.20 * Assert, as TestNG is not compiled with target 1.6 yet).
1.21 */
1.22 @HtmlFragment(
1.23 - "<h1 data-bind=\"text: helloMessage\">Loading Bck2Brwsr's Hello World...</h1>\n" +
1.24 - "Your name: <input id='input' data-bind=\"value: name, valueUpdate: 'afterkeydown'\"></input>\n" +
1.25 - "<button id=\"hello\">Say Hello!</button>\n" +
1.26 - "<p>\n" +
1.27 - " <canvas id=\"canvas\" width=\"300\" height=\"50\"></canvas>\n" +
1.28 - "</p>\n"
1.29 + "<h1>Put this snippet on the HTML page</h1>\n"
1.30 )
1.31 @BrwsrTest
1.32 - public void modifyValueAssertChangeInModel() {
1.33 - Index m = new Index();
1.34 - m.setName("Joe Hacker");
1.35 - m.applyBindings();
1.36 - assert "Joe Hacker".equals(m.input.getValue()) : "Value is really Joe Hacker: " + m.input.getValue();
1.37 - m.input.setValue("Happy Joe");
1.38 - m.triggerEvent(m.input, OnEvent.CHANGE);
1.39 - assert "Happy Joe".equals(m.getName()) : "Name property updated to Happy Joe: " + m.getName();
1.40 + public void runThisTestInABrowser() {
1.41 }
1.42
1.43 @Factory