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

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

Issue 15535005: Added window.testRunner.isChooserShown() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved things to WebTestProxy Created 7 years, 7 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) 3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org)
4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 4 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificati onPermission); 282 bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificati onPermission);
283 bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacy WebNotificationClick); 283 bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacy WebNotificationClick);
284 #endif 284 #endif
285 bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult ); 285 bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult );
286 bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDump Rect); 286 bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDump Rect);
287 bindMethod("addMockSpeechRecognitionResult", &TestRunner::addMockSpeechRecog nitionResult); 287 bindMethod("addMockSpeechRecognitionResult", &TestRunner::addMockSpeechRecog nitionResult);
288 bindMethod("setMockSpeechRecognitionError", &TestRunner::setMockSpeechRecogn itionError); 288 bindMethod("setMockSpeechRecognitionError", &TestRunner::setMockSpeechRecogn itionError);
289 bindMethod("wasMockSpeechRecognitionAborted", &TestRunner::wasMockSpeechReco gnitionAborted); 289 bindMethod("wasMockSpeechRecognitionAborted", &TestRunner::wasMockSpeechReco gnitionAborted);
290 bindMethod("display", &TestRunner::display); 290 bindMethod("display", &TestRunner::display);
291 bindMethod("displayInvalidatedRegion", &TestRunner::displayInvalidatedRegion ); 291 bindMethod("displayInvalidatedRegion", &TestRunner::displayInvalidatedRegion );
292 bindMethod("isChooserShown", &TestRunner::isChooserShown);
292 293
293 // Properties. 294 // Properties.
294 bindProperty("globalFlag", &m_globalFlag); 295 bindProperty("globalFlag", &m_globalFlag);
295 bindProperty("titleTextDirection", &m_titleTextDirection); 296 bindProperty("titleTextDirection", &m_titleTextDirection);
296 bindProperty("platformName", &m_platformName); 297 bindProperty("platformName", &m_platformName);
297 bindProperty("tooltipText", &m_tooltipText); 298 bindProperty("tooltipText", &m_tooltipText);
298 299
299 // webHistoryItemCount is used by tests in LayoutTests\http\tests\history 300 // webHistoryItemCount is used by tests in LayoutTests\http\tests\history
300 bindProperty("webHistoryItemCount", &m_webHistoryItemCount); 301 bindProperty("webHistoryItemCount", &m_webHistoryItemCount);
301 bindProperty("interceptPostMessage", &m_interceptPostMessage); 302 bindProperty("interceptPostMessage", &m_interceptPostMessage);
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 showDevTools(); 1658 showDevTools();
1658 result->setNull(); 1659 result->setNull();
1659 } 1660 }
1660 1661
1661 void TestRunner::closeWebInspector(const CppArgumentList& args, CppVariant* resu lt) 1662 void TestRunner::closeWebInspector(const CppArgumentList& args, CppVariant* resu lt)
1662 { 1663 {
1663 m_delegate->closeDevTools(); 1664 m_delegate->closeDevTools();
1664 result->setNull(); 1665 result->setNull();
1665 } 1666 }
1666 1667
1668 void TestRunner::isChooserShown(const CppArgumentList&, CppVariant* result)
1669 {
1670 result->set(m_proxy->isChooserShown());
1671 }
1672
1667 void TestRunner::evaluateInWebInspector(const CppArgumentList& arguments, CppVar iant* result) 1673 void TestRunner::evaluateInWebInspector(const CppArgumentList& arguments, CppVar iant* result)
1668 { 1674 {
1669 result->setNull(); 1675 result->setNull();
1670 if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isStri ng()) 1676 if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isStri ng())
1671 return; 1677 return;
1672 m_delegate->evaluateInWebInspector(arguments[0].toInt32(), arguments[1].toSt ring()); 1678 m_delegate->evaluateInWebInspector(arguments[0].toInt32(), arguments[1].toSt ring());
1673 } 1679 }
1674 1680
1675 void TestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result) 1681 void TestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result)
1676 { 1682 {
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 result->setNull(); 2042 result->setNull();
2037 } 2043 }
2038 2044
2039 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result) 2045 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result)
2040 { 2046 {
2041 m_pointerLockPlannedResult = PointerLockWillFailSync; 2047 m_pointerLockPlannedResult = PointerLockWillFailSync;
2042 result->setNull(); 2048 result->setNull();
2043 } 2049 }
2044 2050
2045 } 2051 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698