Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Move David Bruant's DOM Events tests into position. #58

Merged
merged 8 commits into from

2 participants

Commits on Apr 4, 2013
  1. @Ms2ger
Commits on Aug 30, 2013
  1. @Ms2ger

    Remove an unnecessary element.

    Ms2ger authored
  2. @Ms2ger

    Use window.onerror instead of window.addEventListener('error').

    Ms2ger authored
    I believe the spec actually supports the latter now, but that is not the main goal of this test.
  3. @Ms2ger
  4. @Ms2ger

    Remove an unnecessary element.

    Ms2ger authored
  5. @Ms2ger
Commits on Oct 6, 2013
  1. @Ms2ger
  2. @Ms2ger
This page is out of date. Refresh to see the latest.
View
4 ...TestTWF_Paris/DavidBruant/event-phases-order.html → DOMEvents/event-phases-order.html
@@ -4,8 +4,6 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
-<button type="button" id="test">Start test</button>
-
<script>
var t = async_test("Event phases order");
@@ -28,4 +26,4 @@
<div id="parent">
<div id="child"></div>
- </div>
+ </div>
View
14 .../throwing-in-listener-and-window-error-event.html → .../throwing-in-listener-and-window-error-event.html
@@ -1,23 +1,21 @@
<!DOCTYPE html>
-<!-- Submitted from TestTWF Paris -->
<meta charset="UTF-8">
<title>Throwing in event listener generates an error event on the window object</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
-<button type="button" id="test">Start test</button>
<script>
var t = async_test("Throwing in event listener generates an error event on the window object");
var errorEvent = false;
- window.addEventListener('error', function(e){
+ window.onerror = function(e) {
errorEvent = e;
- });
+ }
- document.addEventListener('DOMContentLoaded', function(){
+ document.addEventListener('DOMContentLoaded', t.step_func(function(){
var element = document.getElementById('bim');
element.addEventListener('click', function(){
@@ -26,10 +24,10 @@
element.click();
- assert_true(typeof errorEvent === 'object');
+ assert_equals(typeof errorEvent, 'string');
t.done();
- });
+ }));
</script>
<div id="bim">
-</div>
+</div>
View
4 ...rowing-in-listener-when-all-have-not-run-yet.html → ...rowing-in-listener-when-all-have-not-run-yet.html
@@ -1,12 +1,10 @@
<!DOCTYPE html>
-<!-- Submitted from TestTWF Paris -->
<meta charset="UTF-8">
<title>Throwing in event listener</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
-<button type="button" id="test">Start test</button>
<script>
var t = async_test("Throwing in event listener");
@@ -29,4 +27,4 @@
</script>
<div id="bim">
-</div>
+</div>
Something went wrong with that request. Please try again.