<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[204623] trunk/LayoutTests/imported/w3c</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/204623">204623</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-08-18 19:37:52 -0700 (Thu, 18 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Re-sync DOM web platform tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=160980

Reviewed by Ryosuke Niwa.

Re-sync DOM web platform tests from upstream.

* web-platform-tests/dom/events/Event-initEvent-expected.txt:
* web-platform-tests/dom/events/Event-initEvent.html:
* web-platform-tests/dom/events/Event-propagation-expected.txt:
* web-platform-tests/dom/events/Event-propagation.html:
* web-platform-tests/dom/nodes/Node-properties.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventinitEventexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventinitEventhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventpropagationexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventpropagationhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodepropertiesexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodepropertieshtml">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -1,5 +1,20 @@
</span><span class="cx"> 2016-08-18  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Re-sync DOM web platform tests from upstream
+        https://bugs.webkit.org/show_bug.cgi?id=160980
+
+        Reviewed by Ryosuke Niwa.
+
+        Re-sync DOM web platform tests from upstream.
+
+        * web-platform-tests/dom/events/Event-initEvent-expected.txt:
+        * web-platform-tests/dom/events/Event-initEvent.html:
+        * web-platform-tests/dom/events/Event-propagation-expected.txt:
+        * web-platform-tests/dom/events/Event-propagation.html:
+        * web-platform-tests/dom/nodes/Node-properties.html:
+
+2016-08-18  Chris Dumez  &lt;cdumez@apple.com&gt;
+
</ins><span class="cx">         Align our encoding labels with the encoding specification
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=160931
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventinitEventexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent-expected.txt (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent-expected.txt        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent-expected.txt        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -7,5 +7,6 @@
</span><span class="cx"> PASS Calling initEvent multiple times (not getting type). 
</span><span class="cx"> PASS Calling initEvent must not have an effect during dispatching. 
</span><span class="cx"> PASS Calling initEvent must unset the stop propagation flag. 
</span><ins>+PASS Calling initEvent must unset the stop immediate propagation flag. 
</ins><span class="cx"> PASS Calling initEvent during propagation. 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventinitEventhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent.html (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent.html        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-initEvent.html        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">       e.initEvent(&quot;type&quot;, bubbles, cancelable)
</span><span class="cx"> 
</span><span class="cx">       // Step 3.
</span><del>-      // Can't test the stop propagation flag and stop immediate propagation flag.
</del><ins>+      // Stop (immediate) propagation flag is tested later
</ins><span class="cx">       assert_equals(e.defaultPrevented, false, &quot;defaultPrevented&quot;)
</span><span class="cx">       // Step 4.
</span><span class="cx">       assert_equals(e.isTrusted, false, &quot;isTrusted&quot;)
</span><span class="lines">@@ -78,31 +78,28 @@
</span><span class="cx">   this.done()
</span><span class="cx"> }, &quot;Calling initEvent must not have an effect during dispatching.&quot;)
</span><span class="cx"> 
</span><del>-async_test(function() {
</del><ins>+test(function() {
</ins><span class="cx">   var e = document.createEvent(&quot;Event&quot;)
</span><ins>+  e.stopPropagation()
</ins><span class="cx">   e.initEvent(&quot;type&quot;, false, false)
</span><del>-  e.stopPropagation()
-
</del><span class="cx">   var target = document.createElement(&quot;div&quot;)
</span><del>-  target.addEventListener(&quot;type&quot;, this.step_func(function() {
-    assert_unreached(&quot;&quot;)
-  }), false)
-  assert_equals(target.dispatchEvent(e), true, &quot;dispatchEvent must return true&quot;)
-  assert_equals(target.dispatchEvent(e), true, &quot;dispatchEvent must return true&quot;)
</del><ins>+  var called = false
+  target.addEventListener(&quot;type&quot;, function() { called = true }, false)
+  assert_true(target.dispatchEvent(e), &quot;dispatchEvent must return true&quot;)
+  assert_true(called, &quot;Listener must be called&quot;)
+}, &quot;Calling initEvent must unset the stop propagation flag.&quot;)
</ins><span class="cx"> 
</span><ins>+test(function() {
+  var e = document.createEvent(&quot;Event&quot;)
+  e.stopImmediatePropagation()
</ins><span class="cx">   e.initEvent(&quot;type&quot;, false, false)
</span><ins>+  var target = document.createElement(&quot;div&quot;)
</ins><span class="cx">   var called = false
</span><del>-  var target = document.createElement(&quot;div&quot;)
-  target.addEventListener(&quot;type&quot;, this.step_func(function() {
-    called = true
-  }), false)
-  assert_false(called)
-  assert_equals(target.dispatchEvent(e), true, &quot;dispatchEvent must return true&quot;)
-  assert_true(called)
</del><ins>+  target.addEventListener(&quot;type&quot;, function() { called = true }, false)
+  assert_true(target.dispatchEvent(e), &quot;dispatchEvent must return true&quot;)
+  assert_true(called, &quot;Listener must be called&quot;)
+}, &quot;Calling initEvent must unset the stop immediate propagation flag.&quot;)
</ins><span class="cx"> 
</span><del>-  this.done()
-}, &quot;Calling initEvent must unset the stop propagation flag.&quot;)
-
</del><span class="cx"> async_test(function() {
</span><span class="cx">   var e = document.createEvent(&quot;Event&quot;)
</span><span class="cx">   e.initEvent(&quot;type&quot;, false, false)
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventpropagationexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation-expected.txt (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation-expected.txt        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation-expected.txt        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> 
</span><span class="cx"> PASS Newly-created Event 
</span><del>-PASS After stopPropagation() 
</del><ins>+FAIL After stopPropagation() assert_equals: Propagation flag after first dispatch expected true but got false
</ins><span class="cx"> PASS Reinitialized after stopPropagation() 
</span><del>-PASS After stopImmediatePropagation() 
</del><ins>+FAIL After stopImmediatePropagation() assert_equals: Propagation flag after first dispatch expected true but got false
</ins><span class="cx"> PASS Reinitialized after stopImmediatePropagation() 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomeventsEventpropagationhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation.html (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation.html        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-propagation.html        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -13,10 +13,11 @@
</span><span class="cx">     var callback = function() { called = true };
</span><span class="cx">     document.head.addEventListener(&quot;foo&quot;, callback);
</span><span class="cx">     document.head.dispatchEvent(ev);
</span><del>-    // Gecko resets the flags after dispatching; it will happily dispatch
</del><ins>+    assert_equals(called, expected, &quot;Propagation flag&quot;);
+    // dispatchEvent resets the propagation flags so it will happily dispatch
</ins><span class="cx">     // the event the second time around.
</span><span class="cx">     document.head.dispatchEvent(ev);
</span><del>-    assert_equals(called, expected, &quot;Propagation flag&quot;);
</del><ins>+    assert_equals(called, true, &quot;Propagation flag after first dispatch&quot;);
</ins><span class="cx">     document.head.removeEventListener(&quot;foo&quot;, callback);
</span><span class="cx">   }, desc);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodepropertiesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -242,7 +242,7 @@
</span><span class="cx"> PASS xmlElement.previousSibling 
</span><span class="cx"> PASS xmlElement.nextSibling 
</span><span class="cx"> PASS xmlElement.textContent 
</span><del>-FAIL xmlElement.namespaceURI assert_equals: expected (string) &quot;http://www.w3.org/1999/xhtml&quot; but got (object) null
</del><ins>+PASS xmlElement.namespaceURI 
</ins><span class="cx"> PASS xmlElement.prefix 
</span><span class="cx"> PASS xmlElement.localName 
</span><span class="cx"> PASS xmlElement.tagName 
</span><span class="lines">@@ -267,7 +267,7 @@
</span><span class="cx"> PASS detachedXmlElement.previousSibling 
</span><span class="cx"> PASS detachedXmlElement.nextSibling 
</span><span class="cx"> PASS detachedXmlElement.textContent 
</span><del>-FAIL detachedXmlElement.namespaceURI assert_equals: expected (string) &quot;http://www.w3.org/1999/xhtml&quot; but got (object) null
</del><ins>+PASS detachedXmlElement.namespaceURI 
</ins><span class="cx"> PASS detachedXmlElement.prefix 
</span><span class="cx"> PASS detachedXmlElement.localName 
</span><span class="cx"> PASS detachedXmlElement.tagName 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodepropertieshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties.html (204622 => 204623)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties.html        2016-08-19 01:41:06 UTC (rev 204622)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties.html        2016-08-19 02:37:52 UTC (rev 204623)
</span><span class="lines">@@ -226,7 +226,7 @@
</span><span class="cx">         textContent: &quot;do re mi fa so la ti&quot;,
</span><span class="cx"> 
</span><span class="cx">         // Element
</span><del>-        namespaceURI: &quot;http://www.w3.org/1999/xhtml&quot;,
</del><ins>+        namespaceURI: null,
</ins><span class="cx">         prefix: null,
</span><span class="cx">         localName: &quot;igiveuponcreativenames&quot;,
</span><span class="cx">         tagName: &quot;igiveuponcreativenames&quot;,
</span><span class="lines">@@ -246,7 +246,7 @@
</span><span class="cx">         textContent: &quot;&quot;,
</span><span class="cx"> 
</span><span class="cx">         // Element
</span><del>-        namespaceURI: &quot;http://www.w3.org/1999/xhtml&quot;,
</del><ins>+        namespaceURI: null,
</ins><span class="cx">         prefix: null,
</span><span class="cx">         localName: &quot;everyone-hates-hyphenated-element-names&quot;,
</span><span class="cx">         tagName: &quot;everyone-hates-hyphenated-element-names&quot;,
</span></span></pre>
</div>
</div>

</body>
</html>