Files
sdk/tests/lib_2/html/no_linked_scripts_htmltest.html
T
Sigmund Cherem 50db95f69b Fixes for CSP: status lines and some test fixes.
These failures started showing up when we switched to use chrome instead of DRT
for CSP tests.

Change-Id: I53b70ce18eaef73e720e10fdac05245953131f7c
Reviewed-on: https://dart-review.googlesource.com/41480
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-02-14 21:54:53 +00:00

34 lines
819 B
HTML

<!DOCTYPE html>
<!--
Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<!--
START_HTML_DART_TEST
{
"scripts": [ "dispatch_parent_event.js" ],
"expectedMessages": ["hest", "fisk"]
}
END_HTML_DART_TEST
-->
<html>
<head>
<script src="dispatch_parent_event.js"></script>
<title>No Linked Scripts HTML test</title>
</head><body>
<h1>No Linked Scripts HTML test</h1>
<script>
window.postMessage('fisk', '*');
window.postMessage('ged', '*');
window.postMessage('fisk', '*');
function delayed() {
parent.postMessage('ko', '*');
window.postMessage('hest', '*');
}
setTimeout(delayed, 500);
</script>
</body>
</html>