diff options
author | Alan Leung <acleung@google.com> | 2022-03-10 19:13:55 -0800 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-03-14 05:17:30 +0000 |
commit | a711dbc7e45dc6120dad54c0f07bb222f392f28c (patch) | |
tree | f52d35120d8a69ac61d855a0407450290afadd23 /android/testSrc | |
parent | 2bd566f7fed1e2a33ab4aab8bf47e3f0336bfece (diff) | |
download | idea-a711dbc7e45dc6120dad54c0f07bb222f392f28c.tar.gz |
LE: Fix offset issue in invaldation group key search
The compose compiler thinks the function begins with the first
letter of the "fun" keyword not the beginning of @composable.
Bug: none
Test: BasicCompileTesta
Change-Id: I73b4e68a923e51faacdcca39128578e60aea7e12
Diffstat (limited to 'android/testSrc')
-rw-r--r-- | android/testSrc/com/android/tools/idea/run/deployment/liveedit/BasicCompileTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/testSrc/com/android/tools/idea/run/deployment/liveedit/BasicCompileTest.kt b/android/testSrc/com/android/tools/idea/run/deployment/liveedit/BasicCompileTest.kt index 57c580ec5af..687fc231e65 100644 --- a/android/testSrc/com/android/tools/idea/run/deployment/liveedit/BasicCompileTest.kt +++ b/android/testSrc/com/android/tools/idea/run/deployment/liveedit/BasicCompileTest.kt @@ -116,7 +116,7 @@ class BasicCompileTest { // We can't really invoke any composable without the runtime libraries. At least we can check // to make sure the output isn't empty. Assert.assertTrue(output.classData.isNotEmpty()) - Assert.assertEquals(0, output.offSet.start) + Assert.assertEquals("@androidx.compose.runtime.Composable ".length, output.offSet.start) Assert.assertEquals(81, output.offSet.end) } @@ -125,7 +125,7 @@ class BasicCompileTest { var output = compile(files["ComposeNested.kt"], "composableNested").singleOutput() Assert.assertEquals("composableNested", output.methodName) Assert.assertEquals("(Landroidx/compose/runtime/Composer;I)Lkotlin/jvm/functions/Function3;", output.methodDesc) - Assert.assertEquals(0, output.offSet.start) + Assert.assertEquals("@androidx.compose.runtime.Composable ".length, output.offSet.start) Assert.assertEquals(126, output.offSet.end) } |