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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/core/v8/ScriptPromiseProperty.h" 5 #include "bindings/core/v8/ScriptPromiseProperty.h"
6 6
7 #include "bindings/core/v8/DOMWrapperWorld.h" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 362 }
363 363
364 TEST_F(ScriptPromisePropertyGarbageCollectedTest, Resolve_DeadContext) 364 TEST_F(ScriptPromisePropertyGarbageCollectedTest, Resolve_DeadContext)
365 { 365 {
366 { 366 {
367 ScriptState::Scope scope(mainScriptState()); 367 ScriptState::Scope scope(mainScriptState());
368 property()->promise(DOMWrapperWorld::mainWorld()).then(notReached(curren tScriptState()), notReached(currentScriptState())); 368 property()->promise(DOMWrapperWorld::mainWorld()).then(notReached(curren tScriptState()), notReached(currentScriptState()));
369 } 369 }
370 370
371 destroyContext(); 371 destroyContext();
372 EXPECT_TRUE(!property()->executionContext() || property()->executionContext( )->activeDOMObjectsAreStopped()); 372 EXPECT_TRUE(!property()->getExecutionContext() || property()->getExecutionCo ntext()->activeDOMObjectsAreStopped());
373 373
374 property()->resolve(new GarbageCollectedScriptWrappable("value")); 374 property()->resolve(new GarbageCollectedScriptWrappable("value"));
375 EXPECT_EQ(Property::Pending, property()->getState()); 375 EXPECT_EQ(Property::Pending, property()->getState());
376 376
377 v8::MicrotasksScope::PerformCheckpoint(v8::Isolate::GetCurrent()); 377 v8::MicrotasksScope::PerformCheckpoint(v8::Isolate::GetCurrent());
378 } 378 }
379 379
380 TEST_F(ScriptPromisePropertyGarbageCollectedTest, Reset) 380 TEST_F(ScriptPromisePropertyGarbageCollectedTest, Reset)
381 { 381 {
382 ScriptPromise oldPromise, newPromise; 382 ScriptPromise oldPromise, newPromise;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 { 535 {
536 test(String("hello"), "hello", __FILE__, __LINE__); 536 test(String("hello"), "hello", __FILE__, __LINE__);
537 } 537 }
538 538
539 TEST_F(ScriptPromisePropertyNonScriptWrappableResolutionTargetTest, ResolveWithI nteger) 539 TEST_F(ScriptPromisePropertyNonScriptWrappableResolutionTargetTest, ResolveWithI nteger)
540 { 540 {
541 test(-1, "-1", __FILE__, __LINE__); 541 test(-1, "-1", __FILE__, __LINE__);
542 } 542 }
543 543
544 } // namespace 544 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698