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

Side by Side Diff: pkg/analyzer/test/src/task/inputs_test.dart

Issue 1155613010: Remove an unused local variable in the test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.src.task.inputs_test; 5 library test.src.task.inputs_test;
6 6
7 import 'package:analyzer/src/task/inputs.dart'; 7 import 'package:analyzer/src/task/inputs.dart';
8 import 'package:analyzer/src/task/model.dart'; 8 import 'package:analyzer/src/task/model.dart';
9 import 'package:analyzer/task/model.dart'; 9 import 'package:analyzer/task/model.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 builder.moveNext(); 557 builder.moveNext();
558 String value = 'value'; 558 String value = 'value';
559 builder.currentValue = value; 559 builder.currentValue = value;
560 builder.moveNext(); 560 builder.moveNext();
561 expect(builder.inputValue, value); 561 expect(builder.inputValue, value);
562 } 562 }
563 563
564 test_inputValue_afterCurrentValueNotAvailable() { 564 test_inputValue_afterCurrentValueNotAvailable() {
565 SimpleTaskInputBuilder builder = new SimpleTaskInputBuilder(input); 565 SimpleTaskInputBuilder builder = new SimpleTaskInputBuilder(input);
566 builder.moveNext(); 566 builder.moveNext();
567 String value = 'value';
568 builder.currentValueNotAvailable(); 567 builder.currentValueNotAvailable();
569 builder.moveNext(); 568 builder.moveNext();
570 expect(builder.inputValue, isNull); 569 expect(builder.inputValue, isNull);
571 } 570 }
572 571
573 test_inputValue_afterOneMoveNext() { 572 test_inputValue_afterOneMoveNext() {
574 SimpleTaskInputBuilder builder = new SimpleTaskInputBuilder(input); 573 SimpleTaskInputBuilder builder = new SimpleTaskInputBuilder(input);
575 builder.moveNext(); 574 builder.moveNext();
576 expect(() => builder.inputValue, throwsStateError); 575 expect(() => builder.inputValue, throwsStateError);
577 } 576 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 test_moveNext_withSet() { 802 test_moveNext_withSet() {
804 Map<String, TaskInput> inputDescriptors = {'one': input1}; 803 Map<String, TaskInput> inputDescriptors = {'one': input1};
805 TopLevelTaskInputBuilder builder = 804 TopLevelTaskInputBuilder builder =
806 new TopLevelTaskInputBuilder(inputDescriptors); 805 new TopLevelTaskInputBuilder(inputDescriptors);
807 expect(builder.moveNext(), true); 806 expect(builder.moveNext(), true);
808 builder.currentValue = 'value1'; 807 builder.currentValue = 'value1';
809 expect(builder.moveNext(), false); 808 expect(builder.moveNext(), false);
810 expect(builder.moveNext(), false); 809 expect(builder.moveNext(), false);
811 } 810 }
812 } 811 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698