Skip to content

Commit

Permalink
Make broken tests at least compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Aug 10, 2023
1 parent 7b2416f commit 8a273dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/tests/detailed/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void onLoadError(CefBrowser browser, CefFrame frame, ErrorCode errorCode,

// Create the browser.
CefBrowser browser = client_.createBrowser(
"http://www.google.com", osrEnabled, transparentPaintingEnabled, null);
"http://www.google.com", osrEnabled, null);
setBrowser(browser);

// Set up the UI for this example implementation.
Expand Down
2 changes: 1 addition & 1 deletion java/tests/junittests/TestFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void windowClosing(WindowEvent e) {

protected void createBrowser(String startURL) {
assertNull(browser_);
browser_ = client_.createBrowser(startURL, false /* useOSR */, false /* isTransparent */);
browser_ = client_.createBrowser(startURL, false /* isTransparent */);
assertNotNull(browser_);

getContentPane().add(browser_.getUIComponent(), BorderLayout.CENTER);
Expand Down
2 changes: 1 addition & 1 deletion java/tests/simple/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void stateHasChanged(org.cef.CefApp.CefAppState state) {
// by calling the method "getUIComponent()" on the instance of CefBrowser.
// The UI component is inherited from a java.awt.Component and therefore
// it can be embedded into any AWT UI.
browser_ = client_.createBrowser(startURL, useOSR, isTransparent);
browser_ = client_.createBrowser(startURL, isTransparent);
browerUI_ = browser_.getUIComponent();

// (4) For this minimal browser, we need only a text field to enter an URL
Expand Down

0 comments on commit 8a273dc

Please sign in to comment.