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

Unified Diff: third_party/WebKit/Source/core/events/EventTargetTest.cpp

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/EventTargetTest.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTargetTest.cpp b/third_party/WebKit/Source/core/events/EventTargetTest.cpp
index 912c665f8c0edffcc880e5269d4d8f9231425716..c0ac434cb19e8d499220f226f573e2e5a7ee5931 100644
--- a/third_party/WebKit/Source/core/events/EventTargetTest.cpp
+++ b/third_party/WebKit/Source/core/events/EventTargetTest.cpp
@@ -22,7 +22,7 @@ class EventTargetTest : public RenderingTest {
TEST_F(EventTargetTest, PreventDefaultNotCalled) {
GetDocument().GetSettings()->SetScriptEnabled(true);
HistogramTester histogram_tester;
- GetDocument().GetFrame()->Script().ExecuteScriptInMainWorld(
+ GetDocument().GetFrame()->GetScriptController().ExecuteScriptInMainWorld(
"window.addEventListener('touchstart', function(e) {}, {});"
"window.dispatchEvent(new TouchEvent('touchstart', {cancelable: "
"false}));");
@@ -36,7 +36,7 @@ TEST_F(EventTargetTest, PreventDefaultNotCalled) {
TEST_F(EventTargetTest, PreventDefaultCalled) {
GetDocument().GetSettings()->SetScriptEnabled(true);
HistogramTester histogram_tester;
- GetDocument().GetFrame()->Script().ExecuteScriptInMainWorld(
+ GetDocument().GetFrame()->GetScriptController().ExecuteScriptInMainWorld(
"window.addEventListener('touchstart', function(e) "
"{e.preventDefault();}, {});"
"window.dispatchEvent(new TouchEvent('touchstart', {cancelable: "
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698