User:Mantaroh/AnimationTesting
From MozillaWiki
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.
Contents
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
- 基本的に、dom/animation/test および web-platform に追加
- Web Platform tests は progress を確認する (仕様がそのように書かれているため。getComptuedStyle まで確認する必要ない)
- testharness を基本使うようにする
- Web Animations API又CSS Animation/CSS Transition/Web Animationsの共通のところ -> web-platform/tests/web-animations
- API/機能によってDevToolsで反映されるはず -> dom/animation/test/chrome/test_animation_observers.html
- Gecko専用のAPIを使う場合 -> dom/animation/test/chrome
- Gecko専用の動き -> dom/animation/test/mozilla[(7)とマージする]
- CSS AnimationsとWeb Animations API -> dom/animation/test/css-animations (将来: web-platform/tests/css-animations)
- CSS TransitionsとWeb Animations API -> dom/animation/test/css-transitions (将来: web-platform/tests/css-transitions)
- 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?とか?)
- CSS Animations/Transitions -> layout/style/test/
- 描画のバグ -> layout/style/reftests/{css-animations|css-transitions|web-animations}
- CSS Animations/Transitionsのクラッシュ -> layout/style/crashtests
- (10)以外のクラッシュ -> dom/animation/test/crashtests
Bugs
- [Test] Rename to camel-case for directory of web-animation's web-platform tests. (https://bugzilla.mozilla.org/show_bug.cgi?id=1264516)
- [Test] Use testharness in dom/animation/test. (https://bugzilla.mozilla.org/show_bug.cgi?id=1264519)