def CreateStorySet(self, options):
        tests = self._ParseTests('00_test_list.txt',
                                 options.webgl_conformance_version,
                                 (options.webgl2_only == 'true'), None)

        self._webgl_version = [
            int(x) for x in options.webgl_conformance_version.split('.')
        ][0]

        ps = StorySet(serving_dirs=[''], base_dir=conformance_path)

        expectations = self.GetExpectations()

        extension_tests = self.GetExtensionList()
        ps.AddStory(
            WebglExtensionListPage(ps, extension_tests, self._webgl_version,
                                   expectations))
        for extension in extension_tests:
            ps.AddStory(
                WebglExtensionPage(ps, extension, self._webgl_version,
                                   expectations))

        for test in tests:
            ps.AddStory(WebglConformancePage(ps, test, expectations))

        return ps
Пример #2
0
  def CreateStorySet(self, options):
    tests = self._ParseTests('00_test_list.txt',
        options.webgl_conformance_version,
        (options.webgl2_only == 'true'),
        None)

    ps = StorySet(serving_dirs=[''], base_dir=conformance_path)

    expectations = self.GetExpectations()
    for test in tests:
      ps.AddStory(WebglConformancePage(ps, test, expectations))

    return ps