mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Example with iframe that consolidates errors via fetch_tests_from_window</title>
|
||||
<script src="../testharness.js"></script>
|
||||
<script src="../testharnessreport.js"></script>
|
||||
<script>
|
||||
var parent_test = async_test("Test executing in parent context");
|
||||
</script>
|
||||
</head>
|
||||
<body onload="parent_test.done()">
|
||||
<h1>Fetching Tests From a Child Context</h1>
|
||||
<p>This test demonstrates the use of <tt>fetch_tests_from_window</tt> to pull
|
||||
tests from an <tt>iframe</tt> into the primary document.</p>
|
||||
<p>The test suite is expected to fail due to an unhandled exception in the
|
||||
child context.</p>
|
||||
<div id="log"></div>
|
||||
|
||||
<iframe id="childContext" src="apisample4.htm" style="display:none"></iframe>
|
||||
<!-- apisample4 is a failing suite due to an unhandled Error. -->
|
||||
|
||||
<script>
|
||||
var childContext = document.getElementById("childContext");
|
||||
fetch_tests_from_window(childContext.contentWindow);
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue