blob: e8e9d7f186ded1cafd0523f303d5e08a868a81de [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult('Regression test for crbug.com/1058718\n');
await TestRunner.loadModule('elements'); await TestRunner.loadTestModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`<div id='foo'>foo</div>`);
await TestRunner.addScriptTag('network/resources/gc.js');
ElementsTestRunner.selectNodeWithId('foo', step1);
function step1(node) {
TestRunner.evaluateInPage('gc()', step2);
}
async function step2() {
// Pass if it does not crash
TestRunner.completeTest();
}
})();