Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Test data for sexpr_test. | 5 /// Test data for sexpr_test. |
| 6 library test.sexpr.data; | 6 library test.sexpr.data; |
| 7 | 7 |
| 8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
| 9 | 9 |
| 10 class TestSpec extends TestSpecBase { | 10 class TestSpec extends TestSpecBase { |
| (...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1399 (LetCont ((k0 (v0) | 1399 (LetCont ((k0 (v0) |
| 1400 (InvokeContinuation return (v0)))) | 1400 (InvokeContinuation return (v0)))) |
| 1401 (InvokeConstructor C () k0))) | 1401 (InvokeConstructor C () k0))) |
| 1402 ''', | 1402 ''', |
| 1403 'C.': ''' | 1403 'C.': ''' |
| 1404 (FunctionDefinition () return | 1404 (FunctionDefinition () return |
| 1405 (LetPrim (v0 (Constant (Null))) | 1405 (LetPrim (v0 (Constant (Null))) |
| 1406 (InvokeContinuation return (v0)))) | 1406 (InvokeContinuation return (v0)))) |
| 1407 '''}), | 1407 '''}), |
| 1408 ]), | 1408 ]), |
| 1409 | |
| 1410 const Group('Instance method', const <TestSpec>[ | |
| 1411 const TestSpec(''' | |
| 1412 class C { | |
| 1413 C() {} | |
| 1414 foo() {} | |
| 1415 } | |
| 1416 main() { | |
| 1417 return new C().foo(); | |
|
sigurdm
2015/02/06 15:04:46
You could add arguments to make the test stronger
| |
| 1418 } | |
| 1419 ''', | |
| 1420 const { | |
| 1421 'main': ''' | |
| 1422 (FunctionDefinition main () return | |
| 1423 (LetCont ((k0 (v0) | |
| 1424 (LetCont ((k1 (v1) | |
| 1425 (InvokeContinuation return (v1)))) | |
| 1426 (InvokeMethod v0 foo () k1)))) | |
| 1427 (InvokeConstructor C () k0))) | |
| 1428 ''', | |
| 1429 'C.foo': ''' | |
| 1430 (FunctionDefinition foo () return | |
| 1431 (LetPrim (v0 (Constant (Null))) | |
| 1432 (InvokeContinuation return (v0)))) | |
| 1433 '''}), | |
| 1434 ]), | |
| 1409 ]; | 1435 ]; |
| OLD | NEW |