Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: LayoutTests/inspector/profiler/selector-profiler-url.html

Issue 21049007: DevTools: Drop CSS Selector Profiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove forgotten test Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/selector-profiler-url-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/profiler/selector-profiler-url.html
diff --git a/LayoutTests/inspector/profiler/selector-profiler-url.html b/LayoutTests/inspector/profiler/selector-profiler-url.html
deleted file mode 100644
index 517fc697ab6018af68731189fe710033337afef0..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/selector-profiler-url.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<html>
-<head>
-<style>
-#input:focus {
- color: green;
-}
-</style>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script>
-
-function focus()
-{
- document.getElementById("input").focus();
- document.width;
-}
-
-function test()
-{
- CSSAgent.startSelectorProfiler();
- InspectorTest.evaluateInPage("focus()", step1);
-
- function step1()
- {
- CSSAgent.stopSelectorProfiler(step2);
- }
-
- function step2(error, profile)
- {
- if (error) {
- InspectorTest.addResult(error);
- InspectorTest.completeTest();
- return;
- }
-
- const selector = "#input:focus";
- for (var i = 0; i < profile.data.length; ++i) {
- var entry = profile.data[i];
- if (entry.selector === selector) {
- var segments = entry.url.split("/");
- var url = "<empty>";
- if (segments.length > 3) {
- segments.splice(0, segments.length - 3);
- url = segments.join("/");
- }
- InspectorTest.addResult(selector + " stylesheet URL: " + url);
- break;
- }
- }
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that CSS selector profile entries contain valid stylesheet URLs. <a href="https://bugs.webkit.org/show_bug.cgi?id=104225">Bug 104225</a>.
-</p>
-
-<input type="text" id="input">Value</input>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/selector-profiler-url-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698