Lines Matching refs:Result
22 class Result : public Wrappable<Result> {
25 static Handle<Result> Create(v8::Isolate* isolate) {
26 return CreateHandle(isolate, new Result());
37 Result() : count_(0) {
40 virtual ~Result() {
45 return Wrappable<Result>::GetObjectTemplateBuilder(isolate)
46 .SetProperty("count", &Result::count, &Result::set_count)
47 .SetMethod("quit", &Result::Quit);
53 WrapperInfo Result::kWrapperInfo = { gin::kEmbedderNativeGin };
60 result(Result::Create(isolate)) {
64 runner->global()->Set(StringToV8(isolate, "result"),
65 result->GetWrapper(isolate));
77 Handle<Result> result;
89 " result.count++;"
93 EXPECT_EQ(0, helper.result->count());
97 EXPECT_EQ(1, helper.result->count());
104 " result.count++;"
109 EXPECT_EQ(0, helper.result->count());
113 EXPECT_EQ(0, helper.result->count());
119 // TODO(aa): Cannot do: if (++result.count == 3) because of v8 bug. Create
123 " result.count++;"
124 " if (result.count == 3) {"
125 " result.quit();"
130 EXPECT_EQ(0, helper.result->count());
133 EXPECT_EQ(3, helper.result->count());
140 " result.count++;"
144 EXPECT_EQ(0, helper.result->count());
152 EXPECT_EQ(0, helper.result->count());