write -> serialize -> reparse -> read, so the full XML pipeline (not just the in-memory DOM) is exercised.
| 580 | // write -> serialize -> reparse -> read, so the full XML pipeline (not just the |
| 581 | // in-memory DOM) is exercised. |
| 582 | SourceTimelineViewState roundTripViewState(const SourceTimelineViewState& in) { |
| 583 | QDomDocument doc; |
| 584 | doc.appendChild(writeSourceTimelineViewState(doc, in)); |
| 585 | QDomDocument reparsed; |
| 586 | EXPECT_TRUE(reparsed.setContent(doc.toByteArray(2))); |
| 587 | return readSourceTimelineViewState(reparsed.documentElement()); |
| 588 | } |
| 589 | |
| 590 | TEST(SourceTimelineViewState, AllFieldsRoundTrip) { |
| 591 | SourceTimelineViewState in; |
no test coverage detected