• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebook / react / 14098
86%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2016 08:06PM UTC
Jobs 1
Files 230
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
14098

push

travis-ci

sebmarkbage
[Fiber] Attempt to fix ReactDOMTextComponent test in Fiber (#8146)

* Attempt to fix ReactDOMTextComponent test in Fiber

Obviously, some tests pass but the reconciliation is still incomplete on this in Fiber.

Those changes just ignore reconciliation Comments while asserting (this fixes 2 tests already) but now shows that Fiber lacks some reconciliation features.

* Transmit a parentInstance to commitTextUpdate

This is done in case a Node#normalize() was performed on the parent instance and that the TextInstance got desolidarized from the parent. We provide the parent known by the parent Fiber to reattach the DOM node in this case.

* Added a more complex case around split nodes

This test does not assume one split node substitution alone but also some non-split nodes.

* Fiber supports split text nodes

This is done by suppressing nodes appearing during the split. this is based by comparing against the old value known by the Fiber.

* Simplify siblings cleaning in commitTextUpdate

No need to assert instanceof Text since the length comparator will work correctly.

* Ensure non-text nodes won't be removed

* Fix flow for Fiber Text reconciliation additions

Mostly define types as optionals. Respects the strict DOM API around Node & Element.

* Append at any stack stage only if necessary

The direct parent of the TextNode fiber may not contain the host node. We have to go through the hierarchy. However, since this work may be expensive, we only do it if absolutely necessary!

* Use tag & ReactTypeOfWork to find an HostComponent

* Addfailing scenario when running Node.normalize()

It happens when non-text-elements are added in the mix. @sebmarkbage seems to have an idea on how to fix it. This is just a repro of the bug!

* Register failing/passing fiber tests

18 of 18 new or added lines in 2 files covered. (100.0%)

8324 of 9414 relevant lines covered (88.42%)

3049.25 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
17
100.0
src/renderers/dom/fiber/ReactDOMFiber.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/renderers/dom/fiber/ReactDOMFiber.js
Jobs
ID Job ID Ran Files Coverage
2 14098.2 (TEST_TYPE=test) 07 Nov 2016 08:06PM UTC 0
88.42
Travis Job 14098.2
Source Files on build 14098
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #14098
  • 33325ad0 on github
  • Prev Build on master (#14096)
  • Next Build on master (#14099)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc