mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 13:44:39 +08:00
The configuration was only including files that were in a commit diff. This causes issues where we generate sources during the PRESUBMIT (which are not in the git diff at that point in time) and don't format. At the same time, we remove the complicated logic to reuse the `.eslintignore` for clang-format purposes and use the correct `.clang-format` "DisableFormat" options to disable formatting in various directories. Roll CodeMirror: ignore Change-Id: I21b95a6e09c5d6bf036bf1aace103d6c26823ecc Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091445 Reviewed-by: Changhao Han <changhaohan@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
22 lines
723 B
JavaScript
22 lines
723 B
JavaScript
// Copyright 2019 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 console inputs are evaluated in REPL mode\n');
|
|
|
|
await TestRunner.loadModule('console_test_runner');
|
|
await TestRunner.showPanel('console');
|
|
|
|
TestRunner.addSniffer(TestRunner.RuntimeAgent, 'invoke_evaluate', function(args) {
|
|
TestRunner.addResult('Called RuntimeAgent.invoke_evaluate');
|
|
TestRunner.addResult("Value of 'replMode': " + args.replMode);
|
|
});
|
|
|
|
ConsoleTestRunner.evaluateInConsole('let a = 1; let a = 2;', step2);
|
|
|
|
function step2() {
|
|
TestRunner.completeTest();
|
|
}
|
|
})();
|