OSSCA Chromium

기여 목록 / 8460722

[DevTools] Remove failed-request test after crrev.com/c/8449733

DevToolstestMerged

CL 8449733에서 unit test로 옮긴 기존 failed-request 웹 테스트를 제거했습니다.

문제 설명

unit test로 옮긴 뒤에도 기존 Chromium 웹 테스트가 남아 있었습니다.

해결 내용

failed-request.js와 failed-request-expected.txt를 제거했습니다.

전체 코드 diff는 다음과 같습니다.

diff --git a/third_party/blink/web_tests/http/tests/devtools/security/failed-request-expected.txt b/third_party/blink/web_tests/http/tests/devtools/security/failed-request-expected.txt
deleted file mode 100644
index 46ed30c..0000000
--- a/third_party/blink/web_tests/http/tests/devtools/security/failed-request-expected.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-Tests that origins with failed requests are shown correctly in the security panel origins list.
-
-Group: Main origin
-Group: Secure origins
-<SPAN class=highlighted-url >
-    <SPAN class=url-scheme-secure >
-https
-    </SPAN>
-    <SPAN class=url-scheme-separator >
-://
-    </SPAN>
-    <SPAN >
-foo.test
-    </SPAN>
-</SPAN>
-<SPAN class=url-scheme-secure >
-https
-</SPAN>
-<SPAN class=url-scheme-separator >
-://
-</SPAN>
-<SPAN >
-foo.test
-</SPAN>
-Group: Unknown / canceled
-<SPAN class=highlighted-url >
-    <SPAN class=url-scheme-unknown >
-https
-    </SPAN>
-    <SPAN class=url-scheme-separator >
-://
-    </SPAN>
-    <SPAN >
-does-not-resolve.test
-    </SPAN>
-</SPAN>
-<SPAN class=url-scheme-unknown >
-https
-</SPAN>
-<SPAN class=url-scheme-separator >
-://
-</SPAN>
-<SPAN >
-does-not-resolve.test
-</SPAN>
-
diff --git a/third_party/blink/web_tests/http/tests/devtools/security/failed-request.js b/third_party/blink/web_tests/http/tests/devtools/security/failed-request.js
deleted file mode 100644
index d16c4b09..0000000
--- a/third_party/blink/web_tests/http/tests/devtools/security/failed-request.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 The Chromium Authors
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import {TestRunner} from 'test_runner';
-import {SecurityTestRunner} from 'security_test_runner';
-
-import * as SDK from 'devtools/core/sdk/sdk.js';
-
-(async function() {
-  TestRunner.addResult(
-      `Tests that origins with failed requests are shown correctly in the security panel origins list.\n`);
-  await TestRunner.showPanel('security');
-
-  var request1 = SDK.NetworkRequest.NetworkRequest.create(
-      0, 'https://foo.test/foo.jpg', 'https://foo.test', 0, 0, null);
-  request1.setSecurityState(Protocol.Security.SecurityState.Secure);
-  SecurityTestRunner.dispatchRequestFinished(request1);
-
-  var request2 = SDK.NetworkRequest.NetworkRequest.create(
-      0, 'https://does-not-resolve.test', 'https://does-not-resolve.test', 0, 0,
-      null);
-  // Leave the security state unknown.
-  SecurityTestRunner.dispatchRequestFinished(request2);
-
-  SecurityTestRunner.dumpSecurityPanelSidebarOrigins();
-
-  TestRunner.completeTest();
-})();

테스트 방법

CQ를 통해 2026년 9월 24일(한국 시간) Chromium main에 병합되었습니다.

배운 점

테스트 migration 후에는 기존 테스트와 기대 결과 파일도 함께 정리해야 합니다.

참고 자료