%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<!doctype html> <title>CustomEvent</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <div id="log"></div> <script> test(function() { var type = "foo"; var target = document.createElement("div"); target.addEventListener(type, this.step_func(function(evt) { assert_equals(evt.type, type); }), true); var fooEvent = document.createEvent("CustomEvent"); fooEvent.initEvent(type, true, true); target.dispatchEvent(fooEvent); }, "CustomEvent dispatching."); test(function() { var e = document.createEvent("CustomEvent"); assert_throws_js(TypeError, function() { e.initCustomEvent(); }); }, "First parameter to initCustomEvent should be mandatory."); test(function() { var e = document.createEvent("CustomEvent"); e.initCustomEvent("foo"); assert_equals(e.type, "foo", "type"); assert_false(e.bubbles, "bubbles"); assert_false(e.cancelable, "cancelable"); assert_equals(e.detail, null, "detail"); }, "initCustomEvent's default parameter values."); </script>