Home | History | Annotate | Download | only in test262

Lines Matching full:testcase

40 from testrunner.objects import testcase
83 def GetFlagSets(self, testcase, variant):
84 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
89 test_record = self.suite.GetTestRecord(testcase)
122 case = testcase.TestCase(self, testname)
126 def GetFlagsForTestCase(self, testcase, context):
127 return (testcase.flags + context.mode_flags + self.harness +
128 self.GetIncludesForTest(testcase) + ["--harmony"] +
129 [os.path.join(self.testroot, testcase.path + ".js")])
150 def GetTestRecord(self, testcase):
151 if not hasattr(testcase, "test_record"):
153 testcase.test_record = ParseTestRecord(self.GetSourceForTest(testcase),
154 testcase.path)
155 return testcase.test_record
157 def GetIncludesForTest(self, testcase):
158 test_record = self.GetTestRecord(testcase)
166 def GetSourceForTest(self, testcase):
167 filename = os.path.join(self.testroot, testcase.path + ".js")
171 def IsNegativeTest(self, testcase):
172 test_record = self.GetTestRecord(testcase)
180 def HasUnexpectedOutput(self, testcase):
181 outcome = self.GetOutcome(testcase)
182 if (statusfile.FAIL_SLOPPY in testcase.outcomes and
183 "--use-strict" not in testcase.flags):
185 return not outcome in (testcase.outcomes or [statusfile.PASS])