CB-7410 fix the menu test
Need to show the title in order for the options menu button to be visible.
diff --git a/test/assets/www/menus/index.html b/test/assets/www/menus/index.html
index 3a4c0ce..a7b7418 100755
--- a/test/assets/www/menus/index.html
+++ b/test/assets/www/menus/index.html
@@ -33,7 +33,7 @@
<h4>Deviceready: <span id="deviceready"> </span></h4>
</div>
<div id="info">
- <h4>The menu items should be:</h4>
+ <h4>The options menu items should be:</h4>
<li>Item1<br>
<li>Item2<br>
<li>Item3<br>
diff --git a/test/src/org/apache/cordova/test/menus.java b/test/src/org/apache/cordova/test/menus.java
index 12d5230..6d0d3f1 100755
--- a/test/src/org/apache/cordova/test/menus.java
+++ b/test/src/org/apache/cordova/test/menus.java
@@ -28,10 +28,12 @@
import org.apache.cordova.*;
import org.apache.cordova.LOG;
-public class menus extends DroidGap {
+public class menus extends CordovaActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ // need the title to be shown for the options menu to be visible
+ preferences.set("showTitle", true);
super.init();
super.registerForContextMenu(super.appView);
super.loadUrl("file:///android_asset/www/menus/index.html");