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

Unified Diff: third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html

Issue 1480303002: Implement a basic PPAPI plugin for Blink layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android after https://codereview.chromium.org/1478633002 Created 5 years 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: 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>

Powered by Google App Engine
This is Rietveld 408576698