Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: content/test/data/accessibility/transition.html

Issue 401643003: Correctly update the bounds of objects in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update win and android expectations Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/data/accessibility/transition.html
diff --git a/content/test/data/accessibility/transition.html b/content/test/data/accessibility/transition.html
new file mode 100644
index 0000000000000000000000000000000000000000..df42c6aff0333a59c95b1a741537803bc702b934
--- /dev/null
+++ b/content/test/data/accessibility/transition.html
@@ -0,0 +1,58 @@
+<!doctype html>
+<!--
+This tests that location changes are sent when an element animates
+using CSS transitions. The test animates the size of a button when
+focused, then adds the magic text "Done" to the document when
+the transition finishes. The WAIT-FOR directive below instructs
+the test framework to keep waiting for accessibility events and
+not diff the dump against the expectations until the text "Done"
+appears in the dump.
+
+@MAC-ALLOW:size=(400, 200)
+@MAC-ALLOW:size=(600, 300)
+@WIN-ALLOW:size=(400, 200)
+@WIN-ALLOW:size=(600, 300)
+@WAIT-FOR:Done
+-->
+<html>
+<head>
+<style>
+body {
+ width: 800px;
+ height: 600px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ overflow: hidden;
+}
+#growbutton {
+ width: 400px;
+ height: 200px;
+ margin: 0;
+ padding: 0;
+}
+#growbutton:focus {
+ width: 600px;
+ height: 300px;
+ transition: all 0.1s ease-in-out;
+}
+</style>
+</head>
+<body>
+
+<button id="growbutton">GrowButton</button>
+
+<script>
+ var growButton = document.getElementById('growbutton');
+ var done = false;
+ growButton.addEventListener('webkitTransitionEnd', function() {
+ if (!done) {
+ document.body.appendChild(document.createTextNode('Done'));
+ done = true;
+ }
+ }, false);
+ growButton.focus();
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698