Searched refs:bind (Results 1 - 25 of 1165) sorted by relevance

1234567891011>>

/external/v8/test/mjsunit/regress/
H A Dregress-crbug-484077.js7 assertEquals("", %FunctionGetInferredName((function(){}).bind({})));
H A Dregress-bind-receiver.js32 assertEquals(true, strict.bind(true)());
33 assertEquals(42, strict.bind(42)());
34 assertEquals("", strict.bind("")());
35 assertEquals(null, strict.bind(null)());
36 assertEquals(undefined, strict.bind(undefined)());
37 assertEquals(obj, strict.bind(obj)());
39 assertEquals(true, lenient.bind(true)() instanceof Boolean);
40 assertEquals(true, lenient.bind(42)() instanceof Number);
41 assertEquals(true, lenient.bind("")() instanceof String);
42 assertEquals(this, lenient.bind(nul
[all...]
H A Dregress-794.js31 assertFalse("prototype" in foo.bind());
H A Dregress-crbug-572590.js8 var f = g.bind();
H A Dregress-5010.js7 var bound = (function(){}).bind({});
H A Dregress-crbug-595738.js6 var x = {toJSON: foo.bind()};
H A Dregress-1650.js30 function g(f) { return f.call.apply(f.bind, arguments); }
46 assertSame(Fake.prototype.bind, this);
53 Fake.prototype.bind = function () {
H A Dregress-crbug-573857.js8 f = f.bind();
H A Dregress-1419.js28 // Test that using bind several time does not change the length of existing
34 var f1 = function (x) {}.bind(foo);
39 // the object we bind to can be any object
40 f2.bind(foo);
/external/v8/test/mjsunit/
H A Dfunction-bind.js30 // Tests the Function.prototype.bind method.
40 var f = foo.bind(foo);
45 f = foo.bind(foo, 1);
50 f = foo.bind(foo, 1, 2);
55 f = foo.bind(foo, 1, 2, 3);
62 f = foo.bind(foo, 1, 2, 3, 4, 5, 6, 7, 8, 9);
78 f = f_bound_this.bind(obj);
82 f = f_bound_this.bind(obj, 2);
91 f = foo.bind(foo);
95 f = foo.bind(fo
[all...]
H A Dfunction-bind-name.js6 var fb = f.bind({});
10 var fb2 = f.bind({});
14 var gb = g.bind({});
/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
H A Dinvoke_int_0.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
46 test(std::bind(f), 1);
47 test(std::bind(&f), 1);
48 test(std::bind(A_int_0()), 4);
49 test_const(std::bind(A_int_0()), 5);
51 test(std::bind<int>(f), 1);
52 test(std::bind<int>(&f), 1);
53 test(std::bind<int>(A_int_0()), 4);
54 test_const(std::bind<in
[all...]
H A Dinvoke_void_0.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
60 test(std::bind(f));
61 test(std::bind(&f));
62 test(std::bind(A_void_0()));
63 test_const(std::bind(A_void_0()));
65 test(std::bind<void>(f));
66 test(std::bind<void>(&f));
67 test(std::bind<void>(A_void_0()));
68 test_const(std::bind<voi
[all...]
H A Dinvoke_rvalue.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
51 std::bind(f_void_1, _1)(2);
56 std::bind(f_void_1, 2)();
63 std::bind(fp, _1)(3);
69 std::bind(fp, 3)();
76 std::bind(a0, _1)(4);
82 std::bind(a0, 4)();
89 std::bind(fp, _1)(A_void_1());
93 std::bind(f
[all...]
H A Dinvoke_lvalue.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
52 std::bind(f_void_1, _1)(i);
58 std::bind(f_void_1, i)();
66 std::bind(fp, _1)(i);
73 std::bind(fp, i)();
81 std::bind(a0, _1)(i);
88 std::bind(a0, i)();
96 std::bind(fp, _1)(a);
100 std::bind(f
[all...]
H A Dinvoke_function_object.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
45 // instantiated when checking if BadUnaryFunction is a nested bind
47 auto b = std::bind(DummyUnaryFunction(), BadUnaryFunction());
49 auto b2 = std::bind<long>(DummyUnaryFunction(), BadUnaryFunction());
H A Dnested.pass.cpp15 // unspecified bind(Fn, Types...);
17 // unspecified bind(Fn, Types...);
50 auto g = std::bind(power(), 2, _1);
52 assert(std::bind(plus_one(), g)(5) == 33);
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/
H A DMessages.java37 public static String bind(String message) { method in class:Messages
38 return bind(message, null);
48 public static String bind(String message, Object binding) { method in class:Messages
49 return bind(message, new Object[] {binding});
60 public static String bind(String message, Object binding1, Object binding2) { method in class:Messages
61 return bind(message, new Object[] {binding1, binding2});
71 public static String bind(String message, Object[] bindings) { method in class:Messages
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
H A DBackToTheFutureModule.java34 bind(DeLorian.class);
36 bind(EnergySource.class).annotatedWith(Nuclear.class).to(Plutonium.class);
37 bind(EnergySource.class).annotatedWith(Renewable.class).to(Lightning.class);
39 bind(Plutonium.class).toProvider(PlutoniumProvider.class);
40 bind(PinballParts.class).annotatedWith(Used.class).toInstance(new PinballParts());
42 bind(Person.class).annotatedWith(Driver.class).to(MartyMcFly.class).in(Singleton.class);
43 bind(Person.class).annotatedWith(Inventor.class).to(DocBrown.class).in(Singleton.class);
/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/
H A Dis_bind_expression.pass.cpp29 test<true>(std::bind(C()));
30 test<true>(std::bind(C(), std::placeholders::_2));
31 test<true>(std::bind<int>(C()));
/external/guice/core/test/com/google/inject/
H A DErrorHandlingTest.java45 bind(String.class).toProvider(new Provider<String>() {
121 bind(Runnable.class);
122 bind(Foo.class);
123 bind(Bar.class);
124 bind(Tee.class);
125 bind(new TypeLiteral<List<String>>() {});
126 bind(String.class).annotatedWith(Names.named("foo")).in(Named.class);
127 bind(Key.get(Runnable.class)).to(Key.get(Runnable.class));
128 bind(TooManyScopes.class);
130 bind(Objec
[all...]
H A DModuleTest.java16 binder.bind(X.class);
24 binder.bind(Y.class);
31 binder.bind(Z.class);
38 binder.bind(W.class);
/external/testng/src/test/java/test/guice/
H A DGuiceParentModule.java19 bind(MyService.class).toProvider(MyServiceProvider.class);
20 bind(MyContext.class).to(MyContextImpl.class).in(Singleton.class);
21 bind(ITestContext.class).toInstance(context);
/external/guice/extensions/grapher/src/com/google/inject/grapher/graphviz/
H A DGraphvizModule.java30 bind(NameFactory.class)
33 bind(PortIdFactory.class)
/external/guice/core/test/com/googlecode/guice/
H A DGuiceTck.java46 bind(Car.class).to(Convertible.class);
47 bind(Seat.class).annotatedWith(Drivers.class).to(DriversSeat.class);
48 bind(Engine.class).to(V8Engine.class);
49 bind(Cupholder.class);
50 bind(Tire.class);
51 bind(FuelTank.class);

Completed in 533 milliseconds

1234567891011>>