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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php

Issue 2689483007: Tests of ctrl-click can't postMessage to opener - using custom text instead. (Closed)
Patch Set: Rebasing... Created 3 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
Index: third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
index e4e02c06d12f1bb060bc99ef05e35bda24a804f7..6020c2c44c4e8bc5e7ebb98fdb41c55f97c9aea8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
@@ -1,8 +1,6 @@
<script>
-mainTestWindow = window.open("", "mainTestWindow")
-var data = {
- 'method': '<?=$_SERVER['REQUEST_METHOD'] ?>',
- 'formValue': '<?= $_POST['a'] ?>',
-};
-mainTestWindow.postMessage(data, '*');
+testRunner.setCustomTextOutput(
+ 'method: "<?=$_SERVER['REQUEST_METHOD'] ?>"\n' +
+ 'formValue: "<?= $_POST['a'] ?>"');
+testRunner.notifyDone();
</script>

Powered by Google App Engine
This is Rietveld 408576698