blob: 87329399b86a8978fb379a5c4cf1867f395bd258 [file] [log] [blame]
// Copyright 2017 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(
`Tests that CSSParser correctly parses declarations with unterminated strings. Blink bug 231127\n`);
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<div id="inspected" style="color: red'foo"></div>
`);
ElementsTestRunner.selectNodeAndWaitForStyles('inspected', dumpStyles);
async function dumpStyles() {
await ElementsTestRunner.dumpSelectedElementStyles(true);
TestRunner.completeTest();
}
})();