Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 2531) sorted by relevance

12345678910>>...102

/third_party/typescript_eslint/packages/scope-manager/tests/eslint-scope/
Des6-destructuring-assignments.test.ts19 expect(scopeManager.scopes).toHaveLength(2);
25 expect(variables).toHaveLength(0);
26 expect(scope.references).toHaveLength(0);
27 expect(scope['implicit'].leftToBeResolved).toHaveLength(1);
28 expect(scope['implicit'].leftToBeResolved[0].identifier.name).toBe('array');
33 expect(variables).toHaveLength(4);
34 expect(variables[0].name).toBe('arguments');
35 expect(variables[1].name).toBe('a');
36 expect(variables[2].name).toBe('b');
37 expect(variables[3].name).toBe('c');
[all …]
Dreferences.test.ts8 expect(scopeManager.scopes).toHaveLength(1);
13 expect(variables).toHaveLength(1);
14 expect(scope.references).toHaveLength(1);
18 expect(reference.from).toBe(scope);
19 expect(reference.identifier.name).toBe('a');
20 expect(reference.resolved).toBe(variables[0]);
21 expect(reference.writeExpr).not.toBeUndefined();
22 expect(reference.isWrite()).toBeTruthy();
23 expect(reference.isRead()).toBeFalsy();
34 expect(scopeManager.scopes).toHaveLength(2); // [global, foo]
[all …]
Des6-iteration-scope.test.ts22 expect(scopeManager.scopes).toHaveLength(4);
27 expect(variables).toHaveLength(0);
32 expect(variables).toHaveLength(2);
33 expect(variables[0].name).toBe('arguments');
34 expect(variables[1].name).toBe('i');
35 expect(scope.references).toHaveLength(1);
36 expect(scope.references[0].identifier.name).toBe('i');
37 expect(scope.references[0].resolved).toBe(variables[1]);
43 expect(variables).toHaveLength(1);
44 expect(variables[0].name).toBe('i');
[all …]
Des6-class.test.ts20 expect(scopeManager.scopes).toHaveLength(3);
25 expect(scope.block.type).toBe(AST_NODE_TYPES.Program);
26 expect(scope.isStrict).toBeFalsy();
27 expect(variables).toHaveLength(1);
28 expect(variables[0].name).toBe('Derived');
29 expect(scope.references).toHaveLength(1);
30 expect(scope.references[0].identifier.name).toBe('Derived');
35 expect(scope.block.type).toBe(AST_NODE_TYPES.ClassDeclaration);
36 expect(scope.isStrict).toBeTruthy();
37 expect(variables).toHaveLength(1);
[all …]
Des6-default-parameters.test.ts27 expect(scopeManager.scopes).toHaveLength(2); // [global, foo]
32 expect(variables).toHaveLength(numVars); // [arguments?, a, b]
33 expect(scope.references).toHaveLength(1);
37 expect(reference.from).toBe(scope);
38 expect(reference.identifier.name).toBe('b');
39 expect(reference.resolved).toBe(variables[numVars - 1]);
40 expect(reference.writeExpr).not.toBeUndefined();
41 expect(reference.isWrite()).toBeTruthy();
42 expect(reference.isRead()).toBeFalsy();
70 expect(scopeManager.scopes).toHaveLength(2); // [global, foo]
[all …]
Des6-export.test.ts16 expect(scopeManager.scopes).toHaveLength(2);
21 expect(variables).toHaveLength(0);
22 expect(scope.references).toHaveLength(0);
27 expect(variables).toHaveLength(1);
28 expect(variables[0].name).toBe('v');
30 expect(scope.references).toHaveLength(0);
39 expect(scopeManager.scopes).toHaveLength(3);
44 expect(variables).toHaveLength(0);
45 expect(scope.references).toHaveLength(0);
50 expect(variables).toHaveLength(1);
[all …]
Des6-block-scope.test.ts18 expect(scopeManager.scopes).toHaveLength(2); // Program and BlockStatement scope.
23 expect(variables).toHaveLength(0); // No variable in Program scope.
28 expect(variables).toHaveLength(1); // `i` in block scope.
29 expect(variables[0].name).toBe('i');
30 expect(scope.references).toHaveLength(2);
31 expect(scope.references[0].identifier.name).toBe('i');
32 expect(scope.references[1].identifier.name).toBe('i');
44 expect(scopeManager.scopes).toHaveLength(3);
49 expect(variables).toHaveLength(0);
54 expect(variables).toHaveLength(1);
[all …]
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dintrinsic_width_test.dart58 expect(parent.size.width, equals(100.0));
59 expect(parent.size.height, equals(110.0));
61 expect(parent.getMinIntrinsicWidth(0.0), equals(100.0));
62 expect(parent.getMaxIntrinsicWidth(0.0), equals(100.0));
63 expect(parent.getMinIntrinsicHeight(0.0), equals(20.0));
64 expect(parent.getMaxIntrinsicHeight(0.0), equals(200.0));
66 expect(parent.getMinIntrinsicWidth(10.0), equals(100.0));
67 expect(parent.getMaxIntrinsicWidth(10.0), equals(100.0));
68 expect(parent.getMinIntrinsicHeight(10.0), equals(20.0));
69 expect(parent.getMaxIntrinsicHeight(10.0), equals(200.0));
[all …]
Daspect_ratio_test.dart14 expect(box.getMinIntrinsicWidth(200.0), 400.0);
15 expect(box.getMinIntrinsicWidth(400.0), 800.0);
17 expect(box.getMaxIntrinsicWidth(200.0), 400.0);
18 expect(box.getMaxIntrinsicWidth(400.0), 800.0);
20 expect(box.getMinIntrinsicHeight(200.0), 100.0);
21 expect(box.getMinIntrinsicHeight(400.0), 200.0);
23 expect(box.getMaxIntrinsicHeight(200.0), 100.0);
24 expect(box.getMaxIntrinsicHeight(400.0), 200.0);
26 expect(box.getMinIntrinsicWidth(double.infinity), 0.0);
27 expect(box.getMaxIntrinsicWidth(double.infinity), 0.0);
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dgeometry_test.dart14 expect(const Offset(0, 0) >= const Offset(0, -1), true);
15 expect(const Offset(0, 0) >= const Offset(-1, 0), true);
16 expect(const Offset(0, 0) >= const Offset(-1, -1), true);
17 expect(const Offset(0, 0) >= const Offset(0, 0), true);
18 expect(const Offset(0, 0) >= const Offset(0, double.nan), false);
19 expect(const Offset(0, 0) >= const Offset(double.nan, 0), false);
20 expect(const Offset(0, 0) >= const Offset(10, -10), false);
24 expect(const Offset(0, 0) <= const Offset(0, 1), true);
25 expect(const Offset(0, 0) <= const Offset(1, 0), true);
26 expect(const Offset(0, 0) <= const Offset(0, 0), true);
[all …]
/third_party/node/test/parallel/
Dtest-repl.js50 for (const { send, expect } of tests) { field
52 const expectedLines = Array.isArray(expect) ? expect : [ expect ];
63 lineBuffer += await event(socket, expect);
106 expect: '' property
110 expect: `'${message}'` property
114 expect: '\'invoked 987\'' property
118 expect: '12345' property
122 expect: '{ a: 1 }' property
129 expect: [/^Uncaught ReferenceError:\s/] property
137 expect: ['Uncaught Error: test error'] property
[all …]
/third_party/flutter/flutter/packages/flutter_localizations/test/cupertino/
Dtranslations_test.dart14 expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
18 expect(localizations.datePickerYear(0), isNotNull);
19 expect(localizations.datePickerYear(1), isNotNull);
20 expect(localizations.datePickerYear(2), isNotNull);
21 expect(localizations.datePickerYear(10), isNotNull);
23 expect(localizations.datePickerMonth(1), isNotNull);
24 expect(localizations.datePickerMonth(2), isNotNull);
25 expect(localizations.datePickerMonth(11), isNotNull);
26 expect(localizations.datePickerMonth(12), isNotNull);
28 expect(localizations.datePickerDayOfMonth(0), isNotNull);
[all …]
/third_party/jsframework/test/ut/
Dutils.ts25 const expect = chai.expect; constant
31 expect(utils.isObject).to.be.an.instanceof(Function);
32 expect(utils.isObject({})).eql(true);
33 expect(utils.isObject([])).eql(true);
34 expect(utils.isObject('a')).eql(false);
35 expect(utils.isObject(0)).eql(false);
36 expect(utils.isObject(true)).eql(false);
37 expect(utils.isObject(null)).eql(false);
38 expect(utils.isObject(undefined)).eql(false);
39 expect(utils.isObject(function() {})).eql(false);
[all …]
/third_party/protobuf/js/experimental/runtime/kernel/
Dtag_test.js27 expect(bufferDecoder.cursor()).toBe(2);
35 expect(() => skipField(bufferDecoder, WireType.VARINT, 1)).toThrowError();
43 expect(bufferDecoder.cursor()).toBe(8);
50 expect(() => skipField(bufferDecoder, WireType.FIXED64, 1))
59 expect(bufferDecoder.cursor()).toBe(4);
66 expect(() => skipField(bufferDecoder, WireType.FIXED32, 1))
76 expect(bufferDecoder.cursor()).toBe(4);
83 expect(() => skipField(bufferDecoder, WireType.DELIMITED, 1))
93 expect(bufferDecoder.cursor()).toBe(4);
108 expect(bufferDecoder.cursor()).toBe(8);
[all …]
Dkernel_test.js30 expect(accessor.serialize()).toEqual(new ArrayBuffer(0));
36 expect(accessor.getBoolWithDefault(MAX_FIELD_NUMBER)).toBe(true);
38 expect(accessor.serialize())
44 expect(accessor.getPivot()).toBe(24);
49 expect(accessor.getPivot()).toBe(50);
56 expect(accessor.hasFieldNumber(1)).toBe(false);
62 expect(accessor.hasFieldNumber(1)).toBe(true);
68 expect(accessor.hasFieldNumber(1)).toBe(false);
74 expect(accessor.hasFieldNumber(1)).toBe(true);
79 expect(accessor.hasFieldNumber(1)).toBe(false);
[all …]
/third_party/flutter/flutter/packages/flutter/test/physics/
Dnewton_test.dart16 expect(friction.isDone(0.0), false);
17 expect(friction.x(0.0), 100);
18 expect(friction.dx(0.0), 400.0);
20 expect(friction.x(1.0) > 330 && friction.x(1.0) < 335, true);
22 expect(friction.dx(1.0), 120.0);
23 expect(friction.dx(2.0), 36.0);
24 expect(friction.dx(3.0), closeTo(10.8, 0.00001));
25 expect(friction.dx(4.0) < 3.5, true);
27 expect(friction.isDone(5.0), true);
28 expect(friction.x(5.0) > 431 && friction.x(5.0) < 432, true);
[all …]
/third_party/flutter/flutter/packages/flutter/test/painting/
Dtext_style_test.dart12 expect(
16 expect(
26 expect(s1.fontFamily, isNull);
27 expect(s1.fontSize, 10.0);
28 expect(s1.fontWeight, FontWeight.w800);
29 expect(s1.height, 123.0);
30 expect(s1, equals(s1));
31 expect(
37 expect(
43 expect(s1.fontFamily, isNull);
[all …]
/third_party/flutter/flutter/packages/flutter/test/material/
Dlocalizations_test.dart12 expect(localizations.openAppDrawerTooltip, isNotNull);
13 expect(localizations.backButtonTooltip, isNotNull);
14 expect(localizations.closeButtonTooltip, isNotNull);
15 expect(localizations.deleteButtonTooltip, isNotNull);
16 expect(localizations.nextMonthTooltip, isNotNull);
17 expect(localizations.previousMonthTooltip, isNotNull);
18 expect(localizations.nextPageTooltip, isNotNull);
19 expect(localizations.previousPageTooltip, isNotNull);
20 expect(localizations.showMenuTooltip, isNotNull);
21 expect(localizations.licensesPageTitle, isNotNull);
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dgeometry_test.dart15 expect(const Offset(0.0, 0.0).direction, 0.0);
16 expect(const Offset(0.0, 1.0).direction, pi / 2.0);
17 expect(const Offset(0.0, -1.0).direction, -pi / 2.0);
18 expect(const Offset(1.0, 0.0).direction, 0.0);
19 expect(const Offset(1.0, 1.0).direction, pi / 4.0);
20 expect(const Offset(1.0, -1.0).direction, -pi / 4.0);
21 expect(const Offset(-1.0, 0.0).direction, pi);
22 expect(const Offset(-1.0, 1.0).direction, pi * 3.0 / 4.0);
23 expect(const Offset(-1.0, -1.0).direction, -pi * 3.0 / 4.0);
27 expect(Offset.fromDirection(0.0, 0.0), const Offset(0.0, 0.0));
[all …]
/third_party/flutter/flutter/packages/flutter/test/animation/
Dcurves_test.dart13 expect(Curves.linear, hasOneLineDescription);
14 expect(const SawTooth(3), hasOneLineDescription);
15 expect(const Interval(0.25, 0.75), hasOneLineDescription);
16 expect(const Interval(0.25, 0.75, curve: Curves.ease), hasOneLineDescription);
22 expect(flippedEase.transform(0.0), lessThan(0.001));
23 expect(flippedEase.transform(0.5), lessThan(ease.transform(0.5)));
24 expect(flippedEase.transform(1.0), greaterThan(0.999));
25 expect(flippedEase, hasOneLineDescription);
30 expect(step.transform(0.0), 0.0);
31 expect(step.transform(0.24), 0.0);
[all …]
/third_party/flutter/flutter/packages/flutter/test/foundation/
Dservice_extensions_test.dart38 expect(extensions.containsKey(name), isFalse);
57 expect(extensions.containsKey(name), isTrue);
88 expect(true, isFalse);
93 expect(pendingReassemble, isTrue);
109 expect(binding.frameScheduled, isFalse);
111 expect(binding.frameScheduled, isTrue);
112 expect(completed, isFalse);
116 expect(completed, isTrue);
117 expect(binding.frameScheduled, isFalse);
126 expect(binding.frameScheduled, isTrue);
[all …]
/third_party/node/deps/npm/node_modules/umask/test/
Dsimple.js12 var expect = Code.expect; variable
24 expect(result).to.equal(true);
25 expect(o.umask).to.equal(0);
28 expect(result).to.equal(true);
29 expect(o.umask).to.equal(511);
38 expect(result).to.equal(true);
39 expect(o.umask).to.equal(0);
42 expect(result).to.equal(true);
43 expect(o.umask).to.equal(511);
49 expect(umask.validate(undefined, undefined, false)).to.equal(false);
[all …]
/third_party/flutter/flutter/packages/flutter_localizations/test/material/
Dtranslations_test.dart14 expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
18 expect(localizations.openAppDrawerTooltip, isNotNull);
19 expect(localizations.backButtonTooltip, isNotNull);
20 expect(localizations.closeButtonTooltip, isNotNull);
21 expect(localizations.nextMonthTooltip, isNotNull);
22 expect(localizations.previousMonthTooltip, isNotNull);
23 expect(localizations.nextPageTooltip, isNotNull);
24 expect(localizations.previousPageTooltip, isNotNull);
25 expect(localizations.showMenuTooltip, isNotNull);
26 expect(localizations.licensesPageTitle, isNotNull);
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dvisibility_test.dart71 expect(find.byType(Text, skipOffstage: false), findsOneWidget);
72 expect(find.text('a true', skipOffstage: false), findsOneWidget);
73 expect(find.byType(Visibility), paints..paragraph());
74 expect(tester.getSize(find.byType(Visibility)), const Size(800.0, 600.0));
75 expect(semantics, expectedSemanticsWhenPresent);
76 expect(log, <String>['created new state']);
78 expect(log, <String>['created new state', 'tap']);
82 expect(find.byType(Text, skipOffstage: false), findsNothing);
83 expect(find.byType(Visibility), paintsNothing);
84 expect(tester.getSize(find.byType(Visibility)), const Size(800.0, 600.0));
[all …]
Dpageable_list_test.dart79 expect(currentPage, isNull);
81 expect(currentPage, equals(1));
83 expect(find.text('0'), findsNothing);
84 expect(find.text('1'), findsOneWidget);
85 expect(find.text('2'), findsNothing);
86 expect(find.text('3'), findsNothing);
87 expect(find.text('4'), findsNothing);
88 expect(find.text('5'), findsNothing);
91 expect(currentPage, equals(0));
93 expect(find.text('0'), findsOneWidget);
[all …]

12345678910>>...102