Index: third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html |
diff --git a/third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html b/third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html |
index ecace9f9c51bd3f4929da318070fb008ed5bb523..41010d415374f2118eb8198efe22c22496ddce6d 100644 |
--- a/third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html |
+++ b/third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html |
@@ -1,27 +1,28 @@ |
+<!DOCTYPE html> |
<html> |
-<style type="text/css" media="screen"> |
- body { |
+<head> |
+<style> |
+body { |
height: 1000px; |
- } |
+} |
- .fixed { |
+.fixed { |
position: fixed; |
left: 20px; |
top: 20px; |
- } |
+} |
- p { |
+p { |
margin-top: 200px; |
- } |
+} |
- embed { |
+embed { |
margin: 20px; |
- } |
+} |
</style> |
+<script src="../resources/plugin.js"></script> |
<script> |
- |
- function runTest() |
- { |
+startAfterLoadAndFinish(function () { |
window.scrollBy(50, 50); |
if (!window.testRunner) { |
@@ -31,9 +32,6 @@ |
testRunner.dumpAsText(); |
- plg.windowedPlugin = false; |
- plg.eventLoggingEnabled = true; |
- |
eventSender.mouseMoveTo(70,70); |
eventSender.mouseMoveTo(90,90); |
eventSender.mouseDown(); |
@@ -43,17 +41,13 @@ |
eventSender.mouseMoveTo(110,100); |
eventSender.mouseUp(); |
eventSender.mouseMoveTo(20,20); |
- |
- plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed into the next test |
- } |
- |
- window.addEventListener('load', runTest, false); |
+}); |
</script> |
+</head> |
<body> |
- <div class="fixed"> |
- <embed name="plg" type="application/x-webkit-test-netscape" windowedPlugin="false" width=100 height=100></embed> |
- </div> |
- |
+<div class="fixed"> |
+ <embed type="application/x-blink-test-plugin" width=100 height=100></embed> |
+</div> |
<p>Tests for widget positions being correctly updated after scrolling. <a href="rdar://problem/7559069">rdar://problem/7559069</a></p> |
</body> |
</html> |