SourceMapTestBase: better output from assertMapping() to include the passed in 
locations


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/23f83ec3
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/23f83ec3
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/23f83ec3

Branch: refs/heads/develop
Commit: 23f83ec32d924e60b15510cdee5f452fa892c861
Parents: 9498736
Author: Josh Tynjala <[email protected]>
Authored: Fri Apr 8 11:54:57 2016 -0700
Committer: Josh Tynjala <[email protected]>
Committed: Fri Apr 8 11:54:57 2016 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/test/SourceMapTestBase.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/23f83ec3/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/SourceMapTestBase.java
----------------------------------------------------------------------
diff --git 
a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/SourceMapTestBase.java
 
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/SourceMapTestBase.java
index 9843267..ac58f1c 100644
--- 
a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/SourceMapTestBase.java
+++ 
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/SourceMapTestBase.java
@@ -47,7 +47,9 @@ public class SourceMapTestBase extends ASTestBase
                 break;
             }
         }
-        assertTrue("Mapping not found for node " + node.toString(), 
foundMapping);
+        assertTrue("Mapping not found for node " + node.getNodeID() + ". 
Expected "
+                + "source: (" + nodeStartLine + ", " + nodeStartColumn + "), 
dest: (" + outStartLine + ", " + outStartColumn + ") to (" + outEndLine + ", " 
+ outEndColumn + ")",
+                foundMapping);
     }
     
 }

Reply via email to