Skip to content

Commit 9cb7bec

Browse files
committed
Fix Angular test
Error message with newer Angular, adapting the test.
1 parent c88af4e commit 9cb7bec

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

org.eclipse.wildwebdeveloper.tests/META-INF/MANIFEST.MF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Tests for WildWebDeveloper
44
Bundle-SymbolicName: org.eclipse.wildwebdeveloper.tests;singleton:=true
5-
Bundle-Version: 0.4.13.qualifier
5+
Bundle-Version: 0.4.14.qualifier
66
Bundle-Vendor: Eclipse Wild Web Developer
77
Automatic-Module-Name: org.eclipse.wildwebdeveloper.tests
88
Bundle-RequiredExecutionEnvironment: JavaSE-11
9-
Require-Bundle: org.eclipse.wildwebdeveloper;bundle-version="0.5.3",
9+
Require-Bundle: org.eclipse.wildwebdeveloper;bundle-version="0.5.18",
1010
org.junit.jupiter.api;bundle-version="5.6.0",
1111
org.eclipse.core.resources,
1212
org.eclipse.core.runtime,

org.eclipse.wildwebdeveloper.tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>0.5.0-SNAPSHOT</version>
88
</parent>
99
<packaging>eclipse-test-plugin</packaging>
10-
<version>0.4.13-SNAPSHOT</version>
10+
<version>0.4.14-SNAPSHOT</version>
1111
<build>
1212
<plugins>
1313
<plugin>

org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestAngular.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected boolean condition() {
6161
.stream(appComponentFile.findMarkers("org.eclipse.lsp4e.diagnostic", true,
6262
IResource.DEPTH_ZERO))
6363
.anyMatch(marker -> marker.getAttribute(IMarker.LINE_NUMBER, -1) == 5
64-
&& marker.getAttribute(IMarker.MESSAGE, "").contains("template"));
64+
&& marker.getAttribute(IMarker.MESSAGE, "").contains("not exist"));
6565
} catch (CoreException e) {
6666
e.printStackTrace();
6767
return false;
@@ -90,7 +90,7 @@ protected boolean condition() {
9090
try {
9191
markers = appComponentHTML.findMarkers("org.eclipse.lsp4e.diagnostic", true, IResource.DEPTH_ZERO);
9292
return Arrays.stream(markers)
93-
.anyMatch(marker -> marker.getAttribute(IMarker.MESSAGE, "").contains("template"));
93+
.anyMatch(marker -> marker.getAttribute(IMarker.MESSAGE, "").contains("not exist"));
9494
} catch (CoreException e) {
9595
return false;
9696
}

org.eclipse.wildwebdeveloper/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,6 @@
155155
<arg>[email protected]</arg>
156156
<arg>${project.build.directory}/debugger-for-chrome-4.12.12.tgz</arg>
157157
<arg>${project.build.directory}/eslint-server-2.1.14.tgz</arg>
158-
<!--
159-
A try to update @angular/language-server to any version up to v.12.2.0
160-
breaks the receiving of diagnostics:
161-
Failures:
162-
TestAngular.testAngular:56 Diagnostic not published in standalone component file ==> expected: <true> but was: <false>
163-
-->
164158
<arg>@angular/[email protected]</arg>
165159
</arguments>
166160
<workingDirectory>${project.basedir}</workingDirectory>

0 commit comments

Comments
 (0)