Re: [gwt-contrib] delayTestFinish allowing the next test to begin before the previous one finishes (2.1.0.m3)?

2010-10-01 Thread Miroslav Pokorny
Translatable means the jsvacript translated equivalent. Your tests are running 
inside a jvm using pure java. Even your native methods are emulated js.

On 01/10/2010, at 9:54 AM, Damon Lundin damon.lun...@gmail.com wrote:

 We are trying to upgrade from 2.0.4 to 2.1.0.m3 because of some bugs
 in 2.0.4 but in doing so our GWT test cases have begun failing and I
 have determined it's because the next test is beginning before the
 previous one is complete and they are messing each other up.  I know
 that delayTestFinish is meant to allow for tests to make use of async
 calls and it's been working for us but now it's not.
 
 We have a number of tests that roughly look like this:
 
 public void test03 {
  delayTestFinish(12);
  rpcService.someServerCall(new AsyncCallback() {
public void onSuccess() {
  // Do some stuff
  DeferredCommand.addCommand(new Command() {
public void execute() {
  // More stuff
  finishTest();
}
  }
}
  }
 }
 
 public void test04 {
  delayTestFinish(12);
  ...
 }
 
 Our code actually uses DeferredCommands in a long chain of calls but
 in short, test04 begins executing before we call finishTest() in the
 previous test and I don't think that's supposed to happen.
 
 I could further debug this if someone could explain to me what
 implemented in the translatable version of this class means and how
 I would debug this translatable version.  Any advice on how to
 proceed?
 
 -- 
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] delayTestFinish allowing the next test to begin before the previous one finishes (2.1.0.m3)?

2010-10-01 Thread Bruce Johnson
[+Scott and Kelly from Google]

On Thu, Sep 30, 2010 at 4:54 PM, Damon Lundin damon.lun...@gmail.comwrote:

 We are trying to upgrade from 2.0.4 to 2.1.0.m3 because of some bugs
 in 2.0.4 but in doing so our GWT test cases have begun failing and I
 have determined it's because the next test is beginning before the
 previous one is complete and they are messing each other up.  I know
 that delayTestFinish is meant to allow for tests to make use of async
 calls and it's been working for us but now it's not.

 We have a number of tests that roughly look like this:

 public void test03 {
  delayTestFinish(12);
  rpcService.someServerCall(new AsyncCallback() {
public void onSuccess() {
  // Do some stuff
  DeferredCommand.addCommand(new Command() {
public void execute() {
  // More stuff
  finishTest();
}
  }
}
  }
 }

 public void test04 {
  delayTestFinish(12);
  ...
 }

 Our code actually uses DeferredCommands in a long chain of calls but
 in short, test04 begins executing before we call finishTest() in the
 previous test and I don't think that's supposed to happen.

 I could further debug this if someone could explain to me what
 implemented in the translatable version of this class means and how
 I would debug this translatable version.  Any advice on how to
 proceed?

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] delayTestFinish allowing the next test to begin before the previous one finishes (2.1.0.m3)?

2010-10-01 Thread Scott Blum
Is this in dev mode or prod mode?  Do the tests succeed if you run them
individually?

On Thu, Sep 30, 2010 at 7:54 PM, Damon Lundin damon.lun...@gmail.comwrote:

 We are trying to upgrade from 2.0.4 to 2.1.0.m3 because of some bugs
 in 2.0.4 but in doing so our GWT test cases have begun failing and I
 have determined it's because the next test is beginning before the
 previous one is complete and they are messing each other up.  I know
 that delayTestFinish is meant to allow for tests to make use of async
 calls and it's been working for us but now it's not.

 We have a number of tests that roughly look like this:

 public void test03 {
  delayTestFinish(12);
  rpcService.someServerCall(new AsyncCallback() {
public void onSuccess() {
  // Do some stuff
  DeferredCommand.addCommand(new Command() {
public void execute() {
  // More stuff
  finishTest();
}
  }
}
  }
 }

 public void test04 {
  delayTestFinish(12);
  ...
 }

 Our code actually uses DeferredCommands in a long chain of calls but
 in short, test04 begins executing before we call finishTest() in the
 previous test and I don't think that's supposed to happen.

 I could further debug this if someone could explain to me what
 implemented in the translatable version of this class means and how
 I would debug this translatable version.  Any advice on how to
 proceed?

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors