| // 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 svg:style does not crash when the related element is inspected.\n`); |
| await TestRunner.loadModule('elements_test_runner'); |
| await TestRunner.showPanel('elements'); |
| await TestRunner.navigatePromise('resources/svg-style.xhtml'); |
| |
| ElementsTestRunner.selectNodeAndWaitForStyles('main', step1); |
| |
| function step1() { |
| TestRunner.addResult('Main style:'); |
| ElementsTestRunner.dumpSelectedElementStyles(true, false, true); |
| TestRunner.completeTest(); |
| } |
| })(); |