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

Unified Diff: LayoutTests/fast/repaint/set-text-content-same.html

Issue 200763006: Node::setTextContent should avoid work when nothing changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated beforeload-set-text-crash to not timeout Created 6 years, 9 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/set-text-content-same.html
diff --git a/LayoutTests/fast/repaint/set-text-content-same.html b/LayoutTests/fast/repaint/set-text-content-same.html
new file mode 100644
index 0000000000000000000000000000000000000000..00a6ee7e11ee668e26ff765f76f63e46e42786c0
--- /dev/null
+++ b/LayoutTests/fast/repaint/set-text-content-same.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<body onload="runRepaintTest();">
+<pre id="target">PASS if does not repaint.</pre>
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script type="text/javascript">
+ function repaintTest()
+ {
+ target.textContent = "PASS if does not repaint.";
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698