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

Unified Diff: LayoutTests/fast/events/mouse-cursor-change-after-layout.html

Issue 1120653002: Revert of Schedule cursor update when DOM updates layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/mouse-cursor-change-after-layout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/mouse-cursor-change-after-layout.html
diff --git a/LayoutTests/fast/events/mouse-cursor-change-after-layout.html b/LayoutTests/fast/events/mouse-cursor-change-after-layout.html
deleted file mode 100644
index f7f102e577204de6e321e30a19921636f9a069af..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/mouse-cursor-change-after-layout.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script language="javascript" type="text/javascript">
-function addOverlay() {
- var testContainer = document.getElementById('test-container');
- var overlay = document.createElement('div');
- overlay.id='overlay';
- testContainer.appendChild(overlay);
-}
-</script>
-<style type="text/css">
-#target {
- cursor: default;
-}
-#overlay {
- cursor: wait;
- width: 200px;
- height: 200px;
- background: rgba(255,0,0,0.2);
- position: absolute;
- left: 0;
- top: 0;
-}
-</style>
-</head>
-<body>
-<p id="description"></p>
-<p><a href="http://crbug.com/26723">Bug 26723</a></p>
-<div id="test-container">
- <div id="target" onMouseDown="addOverlay();event.preventDefault();">Click me</div>
-</div>
-<br/>
-<div id="console"></div>
-<script>
-var CURSOR_UPDATE_DELAY = 50;
-
-description("Test that mouse cursors are changed correctly after layout.");
-
-if (!window.eventSender) {
- testFailed('This test requires DumpRenderTree');
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- window.jsTestIsAsync = true;
-}
-
-function runTest(prepare, next) {
- prepare();
- setTimeout(function() {
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
- debug('');
- next();
- }, CURSOR_UPDATE_DELAY);
-}
-
-function testsDone() {
- // This text is redundant with the test output - hide it
- document.getElementById('test-container').style.display = 'none';
- finishJSTest();
-}
-
-// Can't do anything useful here without eventSender
-if (window.eventSender) {
- var target = document.getElementById('target');
- eventSender.dragMode = false;
- var tests = [
- function() {
- debug('Mouse move');
- eventSender.mouseMoveTo(target.offsetLeft + 3, target.offsetTop + 3);
- }, function() {
- debug('Mouse down');
- eventSender.mouseDown();
- }, function() {
- debug('Mouse up');
- eventSender.mouseUp();
- }
- ];
-
- var i = 0;
- function nextTest() {
- if (i < tests.length) {
- runTest(tests[i++], nextTest);
- } else {
- testsDone();
- }
- }
- nextTest();
-}
-
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/events/mouse-cursor-change-after-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698