Skip to content

Commit

Permalink
remove other test
Browse files Browse the repository at this point in the history
  • Loading branch information
chadhietala committed Feb 23, 2018
1 parent 8ce1085 commit dcd6bfc
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions packages/@glimmer/test-helpers/lib/suites/initial-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1062,34 +1062,6 @@ export class InitialRenderSuite extends RenderTest {
this.assert.equal(called, 3, 'called three times');
this.assertStableNodes();
}

@test "Failing test 2: interior mutation"() {
let obj = { value: true };
this.render('{{value}}', obj);
this.assertHTML('true');
this.assertStableRerender();

obj.value = 'hello' as any;

this.rerender();
this.assertHTML('hello');
this.assertInvariants();
}

assertInvariants(oldSnapshot?: any, newSnapshot?: any) {
oldSnapshot = oldSnapshot || this.snapshot;
newSnapshot = newSnapshot || this.takeSnapshot();

this.assert.strictEqual(newSnapshot.length, oldSnapshot.length, 'Same number of nodes');

for (let i = 0; i < oldSnapshot.length; i++) {
this.assertSameNode(newSnapshot[i], oldSnapshot[i]);
}
}

assertSameNode(actual: any, expected: any) {
this.assert.strictEqual(actual, expected, 'DOM node stability');
}
}

const XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';

0 comments on commit dcd6bfc

Please sign in to comment.