Пример #1
0
 @Test
 public void apps_minesweeper() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/minesweeper/minesweeper.html"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #2
0
 @Test
 public void apps_projavascript_sun() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/projavascript/sun/08-sun.html"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #3
0
 @Test
 public void apps_paint() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/paint/index.html", "test/apps/paint/paint.js"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #4
0
 @Test
 public void apps_mceditor_full() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/mceditor/full.html", "test/apps/mceditor/tiny_mce_src.js"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #5
0
 @Test
 public void apps_jscrypto_encrypt_from_form() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/jscrypto/encrypt_from_form.html", "test/apps/jscrypto/jscrypto.js"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #6
0
 @Test
 public void apps_solitaire() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/solitaire/spider.html"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #7
0
 @Test
 public void apps_simplecalc() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {"test/apps/simplecalc/math2.html"};
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #8
0
 @Test
 public void apps_samegame() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {
     "test/apps/samegame/index.html", "test/apps/samegame/header.js", "test/apps/samegame/main.js"
   };
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #9
0
 @Test
 public void apps_projavascript_gallery() throws Exception {
   Misc.init();
   Misc.captureSystemOutput();
   String[] args = {
     "test/apps/projavascript/gallery/index.html",
     "test/apps/projavascript/gallery/library.js",
     "test/apps/projavascript/gallery/gallery.js"
   };
   Misc.run(args);
   Misc.checkSystemOutput();
 }
Пример #10
0
 @Test
 public void unorderedForInImplementation_withLazyPropagation() {
   Misc.init();
   Misc.captureSystemOutput();
   Misc.runSourceWithNamedFile(
       "unorderedForInImplementation_withLazyPropagation.js",
       "var o1 = {x: 'A', y: 'A'};",
       "var o2 = {};",
       "for(var p in o1){",
       "   o2[p] = o1[p];",
       "   TAJS_dumpObject(o2);",
       "}",
       "TAJS_dumpObject(o2);");
   Misc.checkSystemOutput();
 }