text: // 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 debugger will stop on "debugger" statement w/ overriden string, etc.\n`);
    await TestRunner.loadModule('sources_test_runner');
    await TestRunner.showPanel('sources');
    await TestRunner.evaluateInPagePromise(`
        function testFunction()
        {
            String = "aa";
            debugger;
        }
    `);
  
    SourcesTestRunner.startDebuggerTest(step1);
  
    function step1() {
      SourcesTestRunner.runTestFunctionAndWaitUntilPaused(step2);
    }
  
    async function step2(callFrames) {
      await SourcesTestRunner.captureStackTrace(callFrames);
      SourcesTestRunner.completeDebuggerTest();
    }
  })();
  