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

Side by Side Diff: content/shell/renderer/test_runner/TestRunner.cpp

Issue 166273013: In TestRunner::setValueForUser, the *second* argument needs to be a string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 /* 5 /*
6 * Copyright (C) 2010 Google Inc. All rights reserved. 6 * Copyright (C) 2010 Google Inc. All rights reserved.
7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) 7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org)
8 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 8 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 1380
1381 WebFrame* frame = m_webView->mainFrame(); 1381 WebFrame* frame = m_webView->mainFrame();
1382 const bool findResult = frame->find(0, cppVariantToWebString(arguments[0]), findOptions, wrapAround, 0); 1382 const bool findResult = frame->find(0, cppVariantToWebString(arguments[0]), findOptions, wrapAround, 0);
1383 frame->stopFinding(false); 1383 frame->stopFinding(false);
1384 result->set(findResult); 1384 result->set(findResult);
1385 } 1385 }
1386 1386
1387 void TestRunner::setValueForUser(const CppArgumentList& arguments, CppVariant* r esult) 1387 void TestRunner::setValueForUser(const CppArgumentList& arguments, CppVariant* r esult)
1388 { 1388 {
1389 result->setNull(); 1389 result->setNull();
1390 if (arguments.size() != 2 || !arguments[0].isObject() || !arguments[0].isStr ing()) 1390 if (arguments.size() != 2 || !arguments[0].isObject() || !arguments[1].isStr ing())
1391 return; 1391 return;
1392 1392
1393 WebElement element; 1393 WebElement element;
1394 if (!WebBindings::getElement(arguments[0].value.objectValue, &element)) 1394 if (!WebBindings::getElement(arguments[0].value.objectValue, &element))
1395 return; 1395 return;
1396 1396
1397 WebInputElement* input = toWebInputElement(&element); 1397 WebInputElement* input = toWebInputElement(&element);
1398 if (!input) 1398 if (!input)
1399 return; 1399 return;
1400 1400
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 result->setNull(); 2116 result->setNull();
2117 } 2117 }
2118 2118
2119 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result) 2119 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result)
2120 { 2120 {
2121 m_pointerLockPlannedResult = PointerLockWillFailSync; 2121 m_pointerLockPlannedResult = PointerLockWillFailSync;
2122 result->setNull(); 2122 result->setNull();
2123 } 2123 }
2124 2124
2125 } 2125 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698