Home | History | Annotate | Download | only in sweet
      1 # Copyright 2018 the V8 project authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 """
      6 Dummy test suite extension with some flaky fruity tests.
      7 """
      8 
      9 from testrunner.local import testsuite
     10 from testrunner.objects import testcase
     11 
     12 class TestSuite(testsuite.TestSuite):
     13   def ListTests(self):
     14     return map(
     15         self._create_test,
     16         ['bananaflakes'],
     17     )
     18 
     19   def _test_class(self):
     20     return TestCase
     21 
     22 
     23 class TestCase(testcase.TestCase):
     24   def get_shell(self):
     25     return 'd8_mocked.py'
     26 
     27   def _get_files_params(self):
     28     return [self.name]
     29 
     30 def GetSuite(*args, **kwargs):
     31   return TestSuite(*args, **kwargs)
     32