OLD | NEW |
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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 findOptions.matchCase = false; | 1330 findOptions.matchCase = false; |
1331 else if (option == "Backwards") | 1331 else if (option == "Backwards") |
1332 findOptions.forward = false; | 1332 findOptions.forward = false; |
1333 else if (option == "WrapAround") | 1333 else if (option == "WrapAround") |
1334 wrapAround = true; | 1334 wrapAround = true; |
1335 } | 1335 } |
1336 } | 1336 } |
1337 | 1337 |
1338 WebFrame* frame = m_webView->mainFrame(); | 1338 WebFrame* frame = m_webView->mainFrame(); |
1339 const bool findResult = frame->find(0, cppVariantToWebString(arguments[0]),
findOptions, wrapAround, 0); | 1339 const bool findResult = frame->find(0, cppVariantToWebString(arguments[0]),
findOptions, wrapAround, 0); |
| 1340 frame->stopFinding(false); |
1340 result->set(findResult); | 1341 result->set(findResult); |
1341 } | 1342 } |
1342 | 1343 |
1343 void TestRunner::setValueForUser(const CppArgumentList& arguments, CppVariant* r
esult) | 1344 void TestRunner::setValueForUser(const CppArgumentList& arguments, CppVariant* r
esult) |
1344 { | 1345 { |
1345 result->setNull(); | 1346 result->setNull(); |
1346 if (arguments.size() != 2) | 1347 if (arguments.size() != 2) |
1347 return; | 1348 return; |
1348 | 1349 |
1349 WebElement element; | 1350 WebElement element; |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 result->setNull(); | 2145 result->setNull(); |
2145 } | 2146 } |
2146 | 2147 |
2147 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp
Variant* result) | 2148 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp
Variant* result) |
2148 { | 2149 { |
2149 m_pointerLockPlannedResult = PointerLockWillFailSync; | 2150 m_pointerLockPlannedResult = PointerLockWillFailSync; |
2150 result->setNull(); | 2151 result->setNull(); |
2151 } | 2152 } |
2152 | 2153 |
2153 } | 2154 } |
OLD | NEW |