blob: 06bdce8477723d829a5c504b11dc1d6dd7cedb0a [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 provisional ignore-listing.\n`);
await TestRunner.loadModule('sources_test_runner');
await TestRunner.showPanel('sources');
await TestRunner.evaluateInPagePromise(`
function testFunction()
{
debugger;
eval("239;//# sourceURL=framework.js");
}
//# sourceURL=frameworks-ignore-list-by-source-code.js
`);
SourcesTestRunner.startDebuggerTest(step1, true);
function step1() {
TestRunner.addSniffer(Bindings.IgnoreListManager.prototype, '_patternChangeFinishedForTests', step2);
var frameworkRegexString = '^framework\\.js$';
Common.settingForTest('skipStackFramesPattern').set(frameworkRegexString);
}
function step2() {
var actions = [
'Print', // "debugger" in testFunction()
'StepInto', 'StepInto', 'Print'
];
SourcesTestRunner.waitUntilPausedAndPerformSteppingActions(actions, step4);
SourcesTestRunner.runTestFunction();
}
function step4() {
SourcesTestRunner.completeDebuggerTest();
}
})();