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

Unified Diff: pkg/analysis_server/test/analysis/notification_outline_test.dart

Issue 1325143003: Issue 24277. Use node's offset as the source range start for the first unit node in Outline. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « pkg/analysis_server/lib/src/computer/computer_outline.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/notification_outline_test.dart
diff --git a/pkg/analysis_server/test/analysis/notification_outline_test.dart b/pkg/analysis_server/test/analysis/notification_outline_test.dart
index 2d459acd691111e62d8707e16c1547c8ee496b43..fdac6b59c79d2a283bfba1e37f544be81725fc68 100644
--- a/pkg/analysis_server/test/analysis/notification_outline_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_outline_test.dart
@@ -577,6 +577,8 @@ class A { // leftA
test_sourceRange_inUnit() {
addTestFile('''
+library lib;
+/// My first class.
class A {
} // endA
class B {
@@ -593,7 +595,7 @@ class B {
expect(element.kind, ElementKind.CLASS);
expect(element.name, "A");
{
- int offset = 0;
+ int offset = testCode.indexOf("/// My first class.");
int end = testCode.indexOf(" // endA");
expect(outline.offset, offset);
expect(outline.length, end - offset);
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_outline.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698