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

Side by Side Diff: Source/testing/runner/TestInterfaces.cpp

Issue 22897010: Add a virtual test suite for exposed "stable" features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined change. Created 7 years, 4 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 | Annotate | Revision Log
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 TestInterfaces::TestInterfaces() 52 TestInterfaces::TestInterfaces()
53 : m_accessibilityController(new AccessibilityController()) 53 : m_accessibilityController(new AccessibilityController())
54 , m_eventSender(new EventSender(this)) 54 , m_eventSender(new EventSender(this))
55 , m_gamepadController(new GamepadController()) 55 , m_gamepadController(new GamepadController())
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);
63 WebRuntimeFeatures::enableExperimentalFeatures(true);
64 WebRuntimeFeatures::enableTestOnlyFeatures(true);
65
66 // NOTE: please don't put feature specific enable flags here, 62 // NOTE: please don't put feature specific enable flags here,
67 // instead add them to RuntimeEnabledFeatures.in 63 // instead add them to RuntimeEnabledFeatures.in
68 64
69 resetAll(); 65 resetAll();
70 } 66 }
71 67
72 TestInterfaces::~TestInterfaces() 68 TestInterfaces::~TestInterfaces()
73 { 69 {
74 m_accessibilityController->setWebView(0); 70 m_accessibilityController->setWebView(0);
75 m_eventSender->setWebView(0); 71 m_eventSender->setWebView(0);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 m_themeEngine.reset(new WebTestThemeEngineWin()); 198 m_themeEngine.reset(new WebTestThemeEngineWin());
203 return m_themeEngine.get(); 199 return m_themeEngine.get();
204 #elif defined(__APPLE__) 200 #elif defined(__APPLE__)
205 if (!m_themeEngine.get()) 201 if (!m_themeEngine.get())
206 m_themeEngine.reset(new WebTestThemeEngineMac()); 202 m_themeEngine.reset(new WebTestThemeEngineMac());
207 return m_themeEngine.get(); 203 return m_themeEngine.get();
208 #endif 204 #endif
209 } 205 }
210 206
211 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698