| Index: chrome/test/data/extensions/platform_apps/web_view/post_message/basic/guest.html
|
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/addremove/guest.html b/chrome/test/data/extensions/platform_apps/web_view/post_message/basic/guest.html
|
| similarity index 50%
|
| copy from chrome/test/data/extensions/platform_apps/web_view/addremove/guest.html
|
| copy to chrome/test/data/extensions/platform_apps/web_view/post_message/basic/guest.html
|
| index 034ca9a786069642c8bba2272742ad4d690994f0..838bbe7f0aae9f06dd99e620c171be40a0372ca7 100644
|
| --- a/chrome/test/data/extensions/platform_apps/web_view/addremove/guest.html
|
| +++ b/chrome/test/data/extensions/platform_apps/web_view/post_message/basic/guest.html
|
| @@ -1,19 +1,14 @@
|
| <!--
|
| - * Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this
|
| + * Copyright 2015 The Chromium Authors. All rights reserved. Use of this
|
| * source code is governed by a BSD-style license that can be found in the
|
| * LICENSE file.
|
| -->
|
| -<html>
|
| -<head>
|
| -</head>
|
| -<body>
|
| -Add remove webview test guest.
|
| -
|
| <script>
|
| window.addEventListener('message', function(e) {
|
| window.console.log('post message received.');
|
| - e.source.postMessage('connected', '*');
|
| + var data = JSON.parse(e.data);
|
| + if (data.length == 1 && data[0] === 'ping') {
|
| + e.source.postMessage(JSON.stringify(['pong']), '*');
|
| + }
|
| });
|
| </script>
|
| -</body>
|
| -</html>
|
|
|