Git Product home page Git Product logo

ttml1-tests's Introduction

TTML1 Test Suites

The TTML1 Test Suites consist of a validation test suite and a presentation test suite.

The tests found in these test suites focus on functionality and constraints thereof that derive directly from normative text in the TTML1 Specification.

Validation Test Suite

The validation test suite is found under the validation directory, and is divided into two parts: (1) tests for valid content (validity tests) and (2) tests for invalid content (invalidity tests). The result of each test can be characterized as PASS or FAIL.

A PASS result for a validity test occurs if the validator does not reject (report a validation error for) the content of the test. In contrast, a FAIL result for a validity test occurs if the validator rejects (reports a validation error for) the content of the test, in which case, such a result is deemed a false negative result.

A PASS result for an invalidity test occcurs if the validator rejects (reports a validation error for) the content of the test. In contrast, a FAIL result for an invalidity test occurs if the validator does not reject (report a validation error for) the content of the test, in which case, such a result is deemed a false positive result.

A validator is considered to strictly pass the test suite if it does not report a false negative for any validity test. A validator is considered to fully pass the test suite if it (1) strictly passes the test suite and (2) does not report a false positive for any invalidity test.

A mapping from (designated) features to specific tests is found in validation/tests.json, which, for each TTML1 feature designator, lists validity and invalidity tests (by name). We refer to this mapping file as the validation test manifest.

Presentation Test Suite

The presentation test suite is found under the presentation directory, and is divided into two parts: (1) tests for presenting valid content and (2) tests for presenting invalid content.

A mapping from (designated) features to specific tests is found in presentation/tests.json, which, for each TTML1 feature designator, lists presentation tests (by name). We refer to this mapping file as the presentation test manifest.

For tests having primarily visual presentation semantics, each presentation test is associated with a like named ZIP archive with the suffix .expected.zip, which contains the output of a particular reference implementation (TTPE). Each such reference archive contains a manifest file and one or more image frames represented in some image format. In the present form of the reference archives, the image format is image/svg+xml. These image frames should not be construed as normative, but merely serve as a possible reference image for performing (human visual) comparisons of expected output.

Pending Tests

Tests located in the pending directory are under consideration for future addition to the test suite. They are not considered part of the formal test suite at this time; furthermore, there is no (fixed) schedule for their addition (or not) to the test suite.

Test Annotation Attributes

In addition to standard, TTML1 defined attributes, each test contains certain tool-specific annotation attributes in a namespace associated with the ttva prefix. These attributes are used by a certain reference implementation, TTV, to facilitate the testing process. Note that TTML1 content processing requires processors to prune (ignore) unrecognized namespace qualified attributes. See Annotations for further information on their usage.

ttml1-tests's People

Contributors

plehegar avatar skynavga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.