mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
parent
c1cb9403a7
commit
7693b03468
9 changed files with 56 additions and 42 deletions
|
@ -0,0 +1,3 @@
|
|||
<form action="about:blank">
|
||||
<button id="submit">Submit</button>
|
||||
</form>
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<iframe src="button-activate-frame.html" onload="runTest()"></iframe>
|
||||
<script>
|
||||
var t = async_test("button activation behaviour submits form");
|
||||
function runTest() {
|
||||
var iframe = document.querySelector('iframe');
|
||||
iframe.onload = t.step_func(function() {
|
||||
t.done();
|
||||
});
|
||||
var doc = iframe.contentDocument;
|
||||
doc.querySelector('button').click();
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue