Bug 1472955 [wpt PR 11763] - Add a new test case for Element#innerText in Web Platform Test, a=testonly
authorYoshifumi Inoue <yosin@chromium.org>
Sat, 07 Jul 2018 00:15:38 +0000
changeset 426141 a7fb46b792fa159beb63d29f900a7bc4268d6f19
parent 426140 7dd1b388306765e985e4e267d6f36ea4efdd40c6
child 426142 ba688fc0671e7612cd2400bb00cdf326b4ef0fdc
push id34267
push userrgurzau@mozilla.com
push dateWed, 11 Jul 2018 22:05:21 +0000
treeherdermozilla-central@3aca103e4915 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1472955, 11763, 651764, 1124264, 572164
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1472955 [wpt PR 11763] - Add a new test case for Element#innerText in Web Platform Test, a=testonly Automatic update from web-platform-testsAdd a new test case for Element#innerText in Web Platform Test This patch introduces a new test case for Element#innerText to verify that result has a collapsed whitespace due by soft line break. In the test case, the layout object associated to space character between <span> elements, doesn't have neither InlineTextBox and NGPhysicalTextFragment. Thus, Element#innerText implementation should detect this and handle it. Bug: 651764 Cq-Include-Trybots: luci.chromium.try :linux_layout_tests_layout_ng Change-Id: Ia25d06a2a3fe993f2e966188b81f9e9c1d0fe982 Reviewed-on: https://chromium-review.googlesource.com/1124264 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#572164} -- wpt-commits: 5d0c4eb770570e966e9b878b787c7de217462567 wpt-pr: 11763 MozReview-Commit-ID: KMSrvRpCH7R
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -578104,17 +578104,17 @@
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
   "html/dom/elements/the-innertext-idl-attribute/META.yml": [
    "45472ac8906e7b383d80ab0b92ecddd6b900f726",
    "support"
   ],
   "html/dom/elements/the-innertext-idl-attribute/getter-tests.js": [
-   "42f3e48763297d3360c1074a7c2b706a6f539d37",
+   "0ffc6d2bf3011a376f85b45090c63de07ac023d5",
    "support"
   ],
   "html/dom/elements/the-innertext-idl-attribute/getter.html": [
    "bfcd91955e1645278f7825d472bcce03dbc8f773",
    "testharness"
   ],
   "html/dom/elements/the-innertext-idl-attribute/multiple-text-nodes.window.js": [
    "b420d0685f5aee068d352ebd22c54d40394faa0f",
--- a/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
+++ b/testing/web-platform/tests/html/dom/elements/the-innertext-idl-attribute/getter-tests.js
@@ -51,16 +51,17 @@ testText("<div style='white-space:pre-li
 
 testText("<div><span>abc </span> def", "abc def", "Whitespace collapses across element boundaries");
 testText("<div><span>abc </span><span></span> def", "abc def", "Whitespace collapses across element boundaries");
 testText("<div><span>abc </span><span style='white-space:pre'></span> def", "abc def", "Whitespace collapses across element boundaries");
 
 /**** Soft line breaks ****/
 
 testText("<div style='width:0'>abc def", "abc def", "Soft line breaks ignored");
+testText("<div style='width:0'><span>abc</span> <span>def</span>", "abc def", "Whitespace text node preserved");
 
 /**** first-line/first-letter ****/
 
 testText("<div class='first-line-uppercase' style='width:0'>abc def", "ABC def", "::first-line styles applied");
 testText("<div class='first-letter-uppercase' style='width:0'>abc def", "Abc def", "::first-letter styles applied");
 testText("<div class='first-letter-float' style='width:0'>abc def", "abc def", "::first-letter float ignored");
 
 /**** &nbsp; ****/