| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bindMethod("setJavaScriptCanAccessClipboard", &TestRunner::setJavaScriptCanA
ccessClipboard); | 222 bindMethod("setJavaScriptCanAccessClipboard", &TestRunner::setJavaScriptCanA
ccessClipboard); |
| 223 bindMethod("setXSSAuditorEnabled", &TestRunner::setXSSAuditorEnabled); | 223 bindMethod("setXSSAuditorEnabled", &TestRunner::setXSSAuditorEnabled); |
| 224 bindMethod("setAllowUniversalAccessFromFileURLs", &TestRunner::setAllowUnive
rsalAccessFromFileURLs); | 224 bindMethod("setAllowUniversalAccessFromFileURLs", &TestRunner::setAllowUnive
rsalAccessFromFileURLs); |
| 225 bindMethod("setAllowFileAccessFromFileURLs", &TestRunner::setAllowFileAccess
FromFileURLs); | 225 bindMethod("setAllowFileAccessFromFileURLs", &TestRunner::setAllowFileAccess
FromFileURLs); |
| 226 bindMethod("overridePreference", &TestRunner::overridePreference); | 226 bindMethod("overridePreference", &TestRunner::overridePreference); |
| 227 bindMethod("setPluginsEnabled", &TestRunner::setPluginsEnabled); | 227 bindMethod("setPluginsEnabled", &TestRunner::setPluginsEnabled); |
| 228 | 228 |
| 229 // The following modify the state of the TestRunner. | 229 // The following modify the state of the TestRunner. |
| 230 bindMethod("dumpEditingCallbacks", &TestRunner::dumpEditingCallbacks); | 230 bindMethod("dumpEditingCallbacks", &TestRunner::dumpEditingCallbacks); |
| 231 bindMethod("dumpAsText", &TestRunner::dumpAsText); | 231 bindMethod("dumpAsText", &TestRunner::dumpAsText); |
| 232 bindMethod("dumpAsTextWithPixelResults", &TestRunner::dumpAsTextWithPixelRes
ults); |
| 232 bindMethod("dumpChildFramesAsText", &TestRunner::dumpChildFramesAsText); | 233 bindMethod("dumpChildFramesAsText", &TestRunner::dumpChildFramesAsText); |
| 233 bindMethod("dumpChildFrameScrollPositions", &TestRunner::dumpChildFrameScrol
lPositions); | 234 bindMethod("dumpChildFrameScrollPositions", &TestRunner::dumpChildFrameScrol
lPositions); |
| 234 bindMethod("dumpIconChanges", &TestRunner::dumpIconChanges); | 235 bindMethod("dumpIconChanges", &TestRunner::dumpIconChanges); |
| 235 bindMethod("setAudioData", &TestRunner::setAudioData); | 236 bindMethod("setAudioData", &TestRunner::setAudioData); |
| 236 bindMethod("dumpFrameLoadCallbacks", &TestRunner::dumpFrameLoadCallbacks); | 237 bindMethod("dumpFrameLoadCallbacks", &TestRunner::dumpFrameLoadCallbacks); |
| 237 bindMethod("dumpPingLoaderCallbacks", &TestRunner::dumpPingLoaderCallbacks); | 238 bindMethod("dumpPingLoaderCallbacks", &TestRunner::dumpPingLoaderCallbacks); |
| 238 bindMethod("dumpUserGestureInFrameLoadCallbacks", &TestRunner::dumpUserGestu
reInFrameLoadCallbacks); | 239 bindMethod("dumpUserGestureInFrameLoadCallbacks", &TestRunner::dumpUserGestu
reInFrameLoadCallbacks); |
| 239 bindMethod("dumpTitleChanges", &TestRunner::dumpTitleChanges); | 240 bindMethod("dumpTitleChanges", &TestRunner::dumpTitleChanges); |
| 240 bindMethod("dumpCreateView", &TestRunner::dumpCreateView); | 241 bindMethod("dumpCreateView", &TestRunner::dumpCreateView); |
| 241 bindMethod("setCanOpenWindows", &TestRunner::setCanOpenWindows); | 242 bindMethod("setCanOpenWindows", &TestRunner::setCanOpenWindows); |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1941 m_proxy->displayInvalidatedRegion(); | 1942 m_proxy->displayInvalidatedRegion(); |
| 1942 result->setNull(); | 1943 result->setNull(); |
| 1943 } | 1944 } |
| 1944 | 1945 |
| 1945 void TestRunner::dumpEditingCallbacks(const CppArgumentList&, CppVariant* result
) | 1946 void TestRunner::dumpEditingCallbacks(const CppArgumentList&, CppVariant* result
) |
| 1946 { | 1947 { |
| 1947 m_dumpEditingCallbacks = true; | 1948 m_dumpEditingCallbacks = true; |
| 1948 result->setNull(); | 1949 result->setNull(); |
| 1949 } | 1950 } |
| 1950 | 1951 |
| 1951 void TestRunner::dumpAsText(const CppArgumentList& arguments, CppVariant* result
) | 1952 void TestRunner::dumpAsText(const CppArgumentList&, CppVariant* result) |
| 1952 { | 1953 { |
| 1953 m_dumpAsText = true; | 1954 m_dumpAsText = true; |
| 1954 m_generatePixelResults = false; | 1955 m_generatePixelResults = false; |
| 1955 | 1956 |
| 1956 // Optional paramater, describing whether it's allowed to dump pixel results
in dumpAsText mode. | 1957 result->setNull(); |
| 1957 if (arguments.size() > 0 && arguments[0].isBool()) | 1958 } |
| 1958 m_generatePixelResults = arguments[0].value.boolValue; | 1959 |
| 1960 void TestRunner::dumpAsTextWithPixelResults(const CppArgumentList&, CppVariant*
result) |
| 1961 { |
| 1962 m_dumpAsText = true; |
| 1963 m_generatePixelResults = true; |
| 1959 | 1964 |
| 1960 result->setNull(); | 1965 result->setNull(); |
| 1961 } | 1966 } |
| 1962 | 1967 |
| 1963 void TestRunner::dumpChildFrameScrollPositions(const CppArgumentList&, CppVarian
t* result) | 1968 void TestRunner::dumpChildFrameScrollPositions(const CppArgumentList&, CppVarian
t* result) |
| 1964 { | 1969 { |
| 1965 m_dumpChildFrameScrollPositions = true; | 1970 m_dumpChildFrameScrollPositions = true; |
| 1966 result->setNull(); | 1971 result->setNull(); |
| 1967 } | 1972 } |
| 1968 | 1973 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 result->setNull(); | 2138 result->setNull(); |
| 2134 } | 2139 } |
| 2135 | 2140 |
| 2136 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp
Variant* result) | 2141 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp
Variant* result) |
| 2137 { | 2142 { |
| 2138 m_pointerLockPlannedResult = PointerLockWillFailSync; | 2143 m_pointerLockPlannedResult = PointerLockWillFailSync; |
| 2139 result->setNull(); | 2144 result->setNull(); |
| 2140 } | 2145 } |
| 2141 | 2146 |
| 2142 } | 2147 } |
| OLD | NEW |