Commit ded56502 authored by tkent's avatar tkent Committed by Commit bot

Remove fast/forms/associatedFormControls-leak-nodes.html.

It is a test for a Document leak by Document::m_associatedFormControls
[1]. However [2] removed m_associatedFormControls, and now the test isn't
helpful.

[1] https://chromium.googlesource.com/chromium/src/+/ca06c84dc478d4af2aa0b37026da6fa1a679d02e
[2] https://chromium.googlesource.com/chromium/src/+/c7e3c1f85c4691489409104d9ab53d30b52cd8d9

BUG=674194

Review-Url: https://codereview.chromium.org/2572383002
Cr-Commit-Position: refs/heads/master@{#438751}
parent 79e26c08
PASS documentsBefore - 1 is documentsAfter
PASS successfullyParsed is true
TEST COMPLETE
<!DOCTYPE html>
<html>
<body>
<iframe id="frame"></iframe>
<script src="../../resources/js-test.js"></script>
<script>
if (!window.internals) {
debug("This test only runs on \"content_shell --run-layout-test\", as it requires existence of window.internals.");
} else {
testRunner.waitUntilDone();
window.jsTestIsAsync = true;
var documentsBefore;
var documentsAfter;
// FIXME(keishi): Calling asyncGC twice to fix flakiness, crbug.com/674194
asyncGC(function() {
asyncGC(function() {
documentsBefore = window.internals.numberOfLiveDocuments();
var frame = document.getElementById('frame');
frame.contentDocument.body.innerHTML = '<form></form>';
document.body.removeChild(frame);
frame = null;
// FIXME(keishi): crbug.com/674194
asyncGC(function() {
asyncGC(function() {
documentsAfter = window.internals.numberOfLiveDocuments();
// -1 is from removing frame itself.
shouldBe('documentsBefore - 1', 'documentsAfter');
finishJSTest();
});
});
});
});
}
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment