User:Mantaroh/AnimationTesting

From MozillaWiki
Jump to: navigation, search

Note : I'll translate into English later. And I'll move this document as sub-document of https://wiki.mozilla.org/Platform/Layout/Web_Animations.

Overview

Meeting Log:https://public.etherpad-mozilla.org/p/mj-gecko-tests

Purpose

  • Eliminate duplication of test
  • To clarify the place to write the test
  • To clarify the target of testing.

Testing Policy

  1. 基本的に、dom/animation/test および web-platform に追加
  2. Web Platform tests は progress を確認する (仕様がそのように書かれているため。getComptuedStyle まで確認する必要ない)
  3. testharness を基本使うようにする
  4. Web Animations API又CSS Animation/CSS Transition/Web Animationsの共通のところ -> web-platform/tests/web-animations
  5. API/機能によってDevToolsで反映されるはず -> dom/animation/test/chrome/test_animation_observers.html
  6. Gecko専用のAPIを使う場合 -> dom/animation/test/chrome
  7. Gecko専用の動き -> dom/animation/test/mozilla[(7)とマージする]
  8. CSS AnimationsとWeb Animations API -> dom/animation/test/css-animations (将来: web-platform/tests/css-animations)
  9. CSS TransitionsとWeb Animations API -> dom/animation/test/css-transitions (将来: web-platform/tests/css-transitions)
  10. Compositorで動くアニメーション -> layout/style/test/test_animations_*
    例: {test|file}_animations_pausing.htmlはdom/animation/test/の下?
    styleを追加して、getComputedStyleとOMTAのテストをその下に入れる?
    そのため、animation_utils.jsを共通の所に移して、omta_isのtestharness.jsっぽい名前でも呼ばれるようにする (assert_equals_omta?とか?)
  1. CSS Animations/Transitions -> layout/style/test/
  2. 描画のバグ -> layout/style/reftests/{css-animations|css-transitions|web-animations}
  3. CSS Animations/Transitionsのクラッシュ -> layout/style/crashtests
  4. (10)以外のクラッシュ -> dom/animation/test/crashtests

Bugs