mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 0bfd25d4 (#381305)
- Delete include/cef_runnable.h (issue #1336). - Build the cef_unittests target using all Chromium headers. Add a USING_CHROMIUM_INCLUDES define and libcef_dll_wrapper_unittests target to support this. This change avoids compile errors due to the divergence of CEF and Chromium base/ header implementations. The libcef_dll_wrapper sources must now compile successfully with both CEF and Chromium base/ headers (issue #1632). - The onbeforeunload message specified via JavaScript is no longer passed to the client (see http://crbug.com/587940).
This commit is contained in:
@ -2,9 +2,6 @@
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
// Include this first to avoid type conflicts with CEF headers.
|
||||
#include "tests/unittests/chromium_includes.h"
|
||||
|
||||
#include "include/base/cef_bind.h"
|
||||
#include "include/wrapper/cef_closure_task.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
@ -145,7 +142,10 @@ class JSDialogTestHandler : public TestHandler {
|
||||
got_onbeforeunloaddialog_.yes();
|
||||
|
||||
if (type_ == TYPE_ONBEFOREUNLOAD) {
|
||||
EXPECT_STREQ("My unload message", message_text.ToString().c_str());
|
||||
// The message is no longer configurable via JavaScript.
|
||||
// See http://crbug.com/587940.
|
||||
EXPECT_STREQ("Is it OK to leave/reload this page?",
|
||||
message_text.ToString().c_str());
|
||||
EXPECT_FALSE(is_reload);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user