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

Unified Diff: LayoutTests/fast/repaint/button-checkbox-click-method-repaint.html

Issue 291563009: Don't repaint button when its click() method is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline on mac Created 6 years, 7 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: LayoutTests/fast/repaint/button-checkbox-click-method-repaint.html
diff --git a/LayoutTests/fast/repaint/button-checkbox-click-method-repaint.html b/LayoutTests/fast/repaint/button-checkbox-click-method-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..51699880b412b82321632d37787a286162c1215e
--- /dev/null
+++ b/LayoutTests/fast/repaint/button-checkbox-click-method-repaint.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest()
+{
+ document.getElementById('button').click();
+ document.getElementById('checkbox').click();
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+#button {
+ width: 100px;
+ height: 50px;
+}
+#checkbox {
+ width: 30px;
+ height: 30px;
+}
+</style>
+<button id="button">Button</button><br>
+<input id="checkbox" type="checkbox">

Powered by Google App Engine
This is Rietveld 408576698