Commit c3b55780 authored by Tim van der Lippe's avatar Tim van der Lippe Committed by Commit Bot

Remove DevTools startup layout tests

This were replaced by e2etests in
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2062588
and
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2062603

TBR=aerotwist@chromium.org

Bug: 1044632
Change-Id: I857c07937cb753cf452d9fcef84a9f3f56eee1b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2085191Reviewed-by: default avatarTim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746453}
parent 948bf834
Tests main resource content is correctly loaded and decoded using correct encoding.
Requesting content:
Resource url: http://127.0.0.1:8000/devtools/startup/resource-tree/resources/main-resource-content-frame.html
Resource content: <html>
<body>
SUCCESS
</body>
</html>
Requesting utf8 content:
Resource url: http://127.0.0.1:8000/devtools/startup/resource-tree/resources/main-resource-content-frame-utf8.php
Resource content: <html>
<body>
The following word is written using cyrillic letters and should look like "SUCCESS": SUССЕSS.
</body>
</html>
// 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() {
await TestRunner.setupStartupTest('resources/main-resource-content.html');
TestRunner.addResult(`Tests main resource content is correctly loaded and decoded using correct encoding.\n`);
await TestRunner.loadModule('application_test_runner');
ApplicationTestRunner.runAfterResourcesAreFinished(
['main-resource-content-frame-utf8.php', 'main-resource-content-frame.html'], step2);
async function step2() {
TestRunner.addResult('Requesting content: ');
var resource = ApplicationTestRunner.resourceMatchingURL('main-resource-content-frame.html');
var content = await TestRunner.PageAgent.getResourceContent(resource.frameId, resource.url);
TestRunner.assertTrue(!!content, 'No content available.');
TestRunner.addResult('Resource url: ' + resource.url);
TestRunner.addResult('Resource content: ' + content);
TestRunner.addResult('Requesting utf8 content: ');
resource = ApplicationTestRunner.resourceMatchingURL('main-resource-content-frame-utf8.php');
content = await TestRunner.PageAgent.getResourceContent(resource.frameId, resource.url);
TestRunner.assertTrue(!!content, 'No content available.');
TestRunner.addResult('Resource url: ' + resource.url);
TestRunner.addResult('Resource content: ' + content);
TestRunner.completeTest();
}
})();
Tests that resources panel correctly shows mime type when it loads data from memory cache. https://bugs.webkit.org/show_bug.cgi?id=63701
image text/html http://127.0.0.1:8000/devtools/devtools/resource-tree/resources/empty.png
stylesheet text/html http://127.0.0.1:8000/devtools/devtools/resource-tree/resources/styles-initial.css
document text/html http://127.0.0.1:8000/devtools/startup/resource-tree/resources/resource-tree-mimetype.html
// 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() {
await TestRunner.setupStartupTest('resources/resource-tree-mimetype.html');
TestRunner.addResult(
`Tests that resources panel correctly shows mime type when it loads data from memory cache. https://bugs.webkit.org/show_bug.cgi?id=63701\n`);
await TestRunner.loadModule('application_test_runner');
function format(resource) {
return resource.resourceType().name() + ' ' + resource.mimeType + ' ' + resource.url;
}
ApplicationTestRunner.dumpResources(format);
TestRunner.completeTest();
})();
<?
header('Content-Type: text/html; charset=utf-8');
?>
<html>
<body>
The following word is written using cyrillic letters and should look like "SUCCESS": SUССЕSS.
</body>
</html>
<body onload="testRunner.inspectSecondaryWindow()">
<iframe src="main-resource-content-frame.html"></iframe>
<iframe src="main-resource-content-frame-utf8.php"></iframe>
</body>
\ No newline at end of file
<html>
<head>
<link rel="stylesheet" href="../../../devtools/resource-tree/resources/styles-initial.css">
<script>
function onload()
{
// This test enumerates all resources currently registered, potentially
// including ones no longer reachable, but not yet garbage collected
// and finalized.
//
// To ensure stable test output, perform a GC right here to flush out
// the finalizable resources.
gc();
testRunner.inspectSecondaryWindow();
}
</script>
</head>
<body onload="onload()">
<img src="../../../devtools/resource-tree/resources/empty.png">
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment