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

Unified Diff: LayoutTests/fast/events/hit-test-counts.html

Issue 669253002: Update hit-test-counts.html to use mobilie optimized viewport. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectation Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-counts-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/hit-test-counts.html
diff --git a/LayoutTests/fast/events/hit-test-counts.html b/LayoutTests/fast/events/hit-test-counts.html
index 0abc257bdb147599e3314a4f8574ca8dd0159d6e..06129a7f1212ae65c2bc83684ca2f4f771ee9acc 100644
--- a/LayoutTests/fast/events/hit-test-counts.html
+++ b/LayoutTests/fast/events/hit-test-counts.html
@@ -1,5 +1,10 @@
<!DOCTYPE html>
+<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
+html {
+ font-family: Ahem;
+ font-size: 10px;
+}
#testArea {
position: absolute;
right: 50px;
@@ -21,6 +26,11 @@
</div>
<script src="../../resources/js-test.js"></script>
<script>
+if (window.internals) {
+ window.internals.settings.setViewportEnabled(true);
+ window.internals.settings.setMockScrollbarsEnabled(true);
+}
+
description("Count how many hit tests are required for various event scenarios. Hit tests can be expensive and it's often tempting to add more. These values should only ever be changed to go down, not up.");
function hitTestCountDelta(doc)
@@ -128,5 +138,12 @@ onload = function() {
var rect = frame.getBoundingClientRect();
sendEvents(rect.left + 3, rect.top + 3, [document, doc2, doc3]);
debug('');
+
+ window.internals.settings.setViewportEnabled(false);
+ debug('Event on a simple div (desktop viewport)');
+ debug('---------------------');
+ var point = centerOf(document.getElementById('target'));
+ sendEvents(point.x, point.y, [document]);
+ debug('');
}
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-counts-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698