1.1 --- a/rt/vm/src/test/java/org/apidesign/vm4brwsr/SizeOfAMethodTest.java Wed May 07 11:05:07 2014 +0200
1.2 +++ b/rt/vm/src/test/java/org/apidesign/vm4brwsr/SizeOfAMethodTest.java Thu Sep 25 23:48:41 2014 +0200
1.3 @@ -40,7 +40,7 @@
1.4 @Test public void sumXYShouldBeSmall() {
1.5 String s = code;
1.6 int beg = s.indexOf("c.sum__III");
1.7 - int end = s.indexOf("c.sum__III.access");
1.8 + int end = s.indexOf(".access", beg);
1.9
1.10 assertTrue(beg > 0, "Found sum method in " + code);
1.11 assertTrue(beg < end, "Found end of sum method in " + code);
1.12 @@ -54,7 +54,7 @@
1.13 @Test public void betterConstructor() {
1.14 String s = code;
1.15 int beg = s.indexOf("c.initInflater__IIZ");
1.16 - int end = s.indexOf("c.initInflater__IIZ.access");
1.17 + int end = s.indexOf(".access", beg);
1.18
1.19 assertTrue(beg > 0, "Found initInflater method in " + code);
1.20 assertTrue(beg < end, "Found end of initInflater method in " + code);
1.21 @@ -67,7 +67,7 @@
1.22 @Test public void deepConstructor() {
1.23 String s = code;
1.24 int beg = s.indexOf("c.intHolder__I");
1.25 - int end = s.indexOf("c.intHolder__I.access");
1.26 + int end = s.indexOf(".access", beg);
1.27
1.28 assertTrue(beg > 0, "Found intHolder method in " + code);
1.29 assertTrue(beg < end, "Found end of intHolder method in " + code);
1.30 @@ -80,7 +80,7 @@
1.31 @Test public void emptyConstructorRequiresNoStack() {
1.32 String s = code;
1.33 int beg = s.indexOf("CLS.cons__V");
1.34 - int end = s.indexOf("CLS.cons__V.access");
1.35 + int end = s.indexOf(".access", beg);
1.36
1.37 assertTrue(beg > 0, "Found constructor in " + code);
1.38 assertTrue(beg < end, "Found end of constructor in " + code);