Esempio n. 1
0
 @Test
 // @Category( { P3, FAST, UNIT })
 // @Description("Test ?: statements")
 public void testBugfix1() {
   List<VjoSemanticProblem> problems =
       getVjoSemanticProblem("bugs.b5071/", "b5071.js", this.getClass());
   VjoSemanticProblem pro = problems.get(0);
   Assert.assertNotNull(pro);
   Assert.assertTrue(pro.getSourceEnd() < 101);
 }
Esempio n. 2
0
 @Test
 // @Category( { P3, FAST, UNIT })
 // @Description("Test unreachment error")
 public void testBugfix2() {
   List<VjoSemanticProblem> problems =
       getVjoSemanticProblem("bugs.b5071/", "B5071B.js", this.getClass());
   for (VjoSemanticProblem pro : problems) {
     Assert.assertNotNull(pro);
     Assert.assertEquals(pro.toString(), 8, pro.getSourceLineNumber());
     Assert.assertTrue(pro.toString(), pro.getSourceStart() < 160);
   }
 }