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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp

Issue 16020003: Blink-side Device Motion API testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed window-property layout test Created 7 years, 5 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 , m_textInputController(new TextInputController()) 56 , m_textInputController(new TextInputController())
57 , m_testRunner(new TestRunner(this)) 57 , m_testRunner(new TestRunner(this))
58 , m_delegate(0) 58 , m_delegate(0)
59 { 59 {
60 WebKit::setLayoutTestMode(true); 60 WebKit::setLayoutTestMode(true);
61 61
62 WebRuntimeFeatures::enableStableFeatures(true); 62 WebRuntimeFeatures::enableStableFeatures(true);
63 WebRuntimeFeatures::enableExperimentalFeatures(true); 63 WebRuntimeFeatures::enableExperimentalFeatures(true);
64 WebRuntimeFeatures::enableTestOnlyFeatures(true); 64 WebRuntimeFeatures::enableTestOnlyFeatures(true);
65 65
66 // NOTE: please don't put feature specific enable flags here,
67 // instead add them to RuntimeEnabledFeatures.in
68
66 resetAll(); 69 resetAll();
67 } 70 }
68 71
69 TestInterfaces::~TestInterfaces() 72 TestInterfaces::~TestInterfaces()
70 { 73 {
71 m_accessibilityController->setWebView(0); 74 m_accessibilityController->setWebView(0);
72 m_eventSender->setWebView(0); 75 m_eventSender->setWebView(0);
73 // m_gamepadController doesn't depend on WebView. 76 // m_gamepadController doesn't depend on WebView.
74 m_textInputController->setWebView(0); 77 m_textInputController->setWebView(0);
75 m_testRunner->setWebView(0, 0); 78 m_testRunner->setWebView(0, 0);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 m_themeEngine.reset(new WebTestThemeEngineWin()); 197 m_themeEngine.reset(new WebTestThemeEngineWin());
195 return m_themeEngine.get(); 198 return m_themeEngine.get();
196 #elif defined(__APPLE__) 199 #elif defined(__APPLE__)
197 if (!m_themeEngine.get()) 200 if (!m_themeEngine.get())
198 m_themeEngine.reset(new WebTestThemeEngineMac()); 201 m_themeEngine.reset(new WebTestThemeEngineMac());
199 return m_themeEngine.get(); 202 return m_themeEngine.get();
200 #endif 203 #endif
201 } 204 }
202 205
203 } 206 }
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698