зеркало из https://github.com/mozilla/pluotsorbet.git
Fix third background test
This commit is contained in:
Родитель
440fb2f5d2
Коммит
eddc80f2ad
|
@ -217,8 +217,8 @@ casper.test.begin("unit tests", 19 + gfxTests.length, function(test) {
|
|||
casper
|
||||
.thenOpen("http://localhost:8000/index.html?midletClassName=tests.background.BackgroundMIDlet3&jad=tests/midlets/background/background3.jad&jars=tests/tests.jar&logConsole=web,page")
|
||||
.withFrame(0, function() {
|
||||
casper.waitForText("Hello World from foreground MIDlet\nhello\nciao", function() {
|
||||
test.pass();
|
||||
casper.waitForText("Hello World from foreground MIDlet", function() {
|
||||
test.assertTextExists("prop1=hello prop2=ciao");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -9,12 +9,8 @@ public class ForegroundMIDlet extends MIDlet {
|
|||
public void startApp() {
|
||||
System.out.println("Hello World from foreground MIDlet");
|
||||
|
||||
if (System.getProperty("prop1") != null) {
|
||||
System.out.println(System.getProperty("prop1"));
|
||||
}
|
||||
|
||||
if (System.getProperty("prop2") != null) {
|
||||
System.out.println(System.getProperty("prop2"));
|
||||
if (System.getProperty("prop1") != null && System.getProperty("prop2") != null) {
|
||||
System.out.println("prop1=" + System.getProperty("prop1") + " prop2=" + System.getProperty("prop2"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче