From 601c0d14c36872f24fa03b6be4e384ad43b9d317 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Thu, 31 Jul 2025 11:52:16 +0200 Subject: [PATCH 01/39] start working on 4.15.0 --- pom.xml | 2 +- src/changes/changes.xml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0f9ed14a8e..34574a25d4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.htmlunit htmlunit - 4.14.0 + 4.15.0-SNAPSHOT jar HtmlUnit diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b513b1bf09..d743c0cb74 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -14,8 +14,12 @@ Switched to sonatype central-publishing for snapshots and release builds. + + New method WebClinet.waitForBackgroundJavaScriptStartingBefore(final long delayMillis, final long timeoutMillis) + that combines a overall timeout with witing for js tasks starting before. + - Avoid ConcurrentModificationException if HtmlPage.deregisterFramesIfNeeded() + Avoid ConcurrentModificationException in HtmlPage.deregisterFramesIfNeeded() Separate developer docu to help peoples to start working on this project From 41e9fe7b3130f5d48851cc45e2d20eeeaa428e9c Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Fri, 1 Aug 2025 08:47:56 +0200 Subject: [PATCH 02/39] pmd --- src/main/java/org/htmlunit/WebRequest.java | 5 +++-- .../htmlunit/html/DefaultElementFactory.java | 18 ++++++++++-------- .../javascript/host/dom/DOMTokenList.java | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/htmlunit/WebRequest.java b/src/main/java/org/htmlunit/WebRequest.java index 137225f8c1..250d81edb8 100644 --- a/src/main/java/org/htmlunit/WebRequest.java +++ b/src/main/java/org/htmlunit/WebRequest.java @@ -678,8 +678,9 @@ public void addHint(final HttpHint hint) { public String toString() { final StringBuilder builder = new StringBuilder(100) .append(getClass().getSimpleName()) - .append("[ extends OrderedFastHashMap { - OrderedFastHashMapWithLowercaseKeys(final int size) { - super(size); - } - } - /** Logging support. */ private static final Log LOG = LogFactory.getLog(DefaultElementFactory.class); /** - * You can generate your own test cases by looking into ElementTestSource.generateTestForHtmlElements. + * You can generate your own test cases by looking into + * {@link ElementTestSource#generateTestForHtmlElements(String, String)}. */ public static final List SUPPORTED_TAGS_ = Collections.unmodifiableList(Arrays.asList( HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME, @@ -118,6 +113,13 @@ static final class OrderedFastHashMapWithLowercaseKeys extends OrderedFast HtmlVariable.TAG_NAME, HtmlVideo.TAG_NAME, HtmlWordBreak.TAG_NAME, HtmlExample.TAG_NAME )); + // for performance optimization + static final class OrderedFastHashMapWithLowercaseKeys extends OrderedFastHashMap { + OrderedFastHashMapWithLowercaseKeys(final int size) { + super(size); + } + } + /** * @param page the owning page * @param tagName the HTML tag name diff --git a/src/main/java/org/htmlunit/javascript/host/dom/DOMTokenList.java b/src/main/java/org/htmlunit/javascript/host/dom/DOMTokenList.java index 9377c745c4..d39d11f377 100644 --- a/src/main/java/org/htmlunit/javascript/host/dom/DOMTokenList.java +++ b/src/main/java/org/htmlunit/javascript/host/dom/DOMTokenList.java @@ -260,7 +260,7 @@ public boolean replace(final String oldToken, final String newToken) { } final List parts = split(value); final int pos = parts.indexOf(oldToken); - while (pos == -1) { + if (pos == -1) { return false; } From 681b016d23b8a836795b2397fcfaa0794adc683f Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Fri, 1 Aug 2025 09:16:35 +0200 Subject: [PATCH 03/39] ups --- src/main/java/org/htmlunit/html/DefaultElementFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/htmlunit/html/DefaultElementFactory.java b/src/main/java/org/htmlunit/html/DefaultElementFactory.java index 6f3075de7b..71e9bf6be1 100644 --- a/src/main/java/org/htmlunit/html/DefaultElementFactory.java +++ b/src/main/java/org/htmlunit/html/DefaultElementFactory.java @@ -28,7 +28,6 @@ import org.htmlunit.SgmlPage; import org.htmlunit.cyberneko.xerces.util.XMLAttributesImpl; import org.htmlunit.cyberneko.xerces.xni.QName; -import org.htmlunit.source.ElementTestSource; import org.htmlunit.util.OrderedFastHashMap; import org.xml.sax.Attributes; @@ -57,7 +56,7 @@ public class DefaultElementFactory implements ElementFactory { /** * You can generate your own test cases by looking into - * {@link ElementTestSource#generateTestForHtmlElements(String, String)}. + * {@link org.htmlunit.source.ElementTestSource#generateTestForHtmlElements(String, String)}. */ public static final List SUPPORTED_TAGS_ = Collections.unmodifiableList(Arrays.asList( HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME, From cc57614d966278f6277f86c68c1d34cc836776b2 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 3 Aug 2025 13:13:10 +0200 Subject: [PATCH 04/39] use neko snapshot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 34574a25d4..c158681b77 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ 4.14.0 4.14.0 4.14.0 - 4.14.0 + 4.15.0-SNAPSHOT 4.14.0 4.14.0 From 041f69e014221a178f6c20eb112bf510129b5ff4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 12:09:28 +0000 Subject: [PATCH 05/39] Bump ossf/scorecard-action from 2.4.1 to 2.4.2 Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.1 to 2.4.2. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/f49aabe0b5af0936a0987cfb85d86b75731b0186...05b42c624433fc40578a4040d5cf5e36ddca8cde) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-version: 2.4.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/scorecard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 3536fd3b40..727f68f0e2 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -37,7 +37,7 @@ jobs: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1 + uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2 with: results_file: results.sarif results_format: sarif From 38bfdffc715fa21c60656e4b0c4af71f390fc78b Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Mon, 4 Aug 2025 19:05:54 +0200 Subject: [PATCH 06/39] core-js moves on --- pom.xml | 2 +- src/changes/changes.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c158681b77..b1737a6baa 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ 4.14.0 4.14.0 - 4.14.0 + 4.15.0-SNAPSHOT 4.15.0-SNAPSHOT 4.14.0 4.14.0 diff --git a/src/changes/changes.xml b/src/changes/changes.xml index d743c0cb74..d67b1c9189 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -7,6 +7,13 @@ + + + core-js: TypedArray.from and TypedArray.of implemented. + + + + New sister project 'jsoup-bridge' (https://github.com/HtmlUnit/htmlunit?tab=readme-ov-file#jsoup-bridge). From 7b8b187fb37ae906581d33c4bca34fd75486c5f2 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Wed, 6 Aug 2025 16:22:12 +0200 Subject: [PATCH 07/39] rewritten refresh parsing (see #1002) and test migrated to WebDriver --- src/main/java/org/htmlunit/html/HtmlPage.java | 70 ++-- .../java/org/htmlunit/html/HtmlPage6Test.java | 368 ++++++++++++++++++ .../java/org/htmlunit/html/HtmlPageTest.java | 137 ------- 3 files changed, 409 insertions(+), 166 deletions(-) create mode 100644 src/test/java/org/htmlunit/html/HtmlPage6Test.java diff --git a/src/main/java/org/htmlunit/html/HtmlPage.java b/src/main/java/org/htmlunit/html/HtmlPage.java index f1e3c78da8..9bf3f650b8 100644 --- a/src/main/java/org/htmlunit/html/HtmlPage.java +++ b/src/main/java/org/htmlunit/html/HtmlPage.java @@ -1354,10 +1354,9 @@ private void executeRefreshIfNeeded() throws IOException { final double time; final URL url; - int index = StringUtils.indexOfAnyBut(refreshString, "0123456789"); - final boolean timeOnly = index == -1; + final int index = StringUtils.indexOfAnyBut(refreshString, "0123456789."); - if (timeOnly) { + if (index == -1) { // Format: try { time = Double.parseDouble(refreshString); @@ -1373,7 +1372,7 @@ private void executeRefreshIfNeeded() throws IOException { else { // Format: try { - time = Double.parseDouble(refreshString.substring(0, index).trim()); + time = Double.parseDouble(refreshString.substring(0, index)); } catch (final NumberFormatException e) { if (LOG.isErrorEnabled()) { @@ -1381,35 +1380,48 @@ private void executeRefreshIfNeeded() throws IOException { } return; } - index = refreshString.toLowerCase(Locale.ROOT).indexOf("url=", index); - if (index == -1) { - if (LOG.isErrorEnabled()) { - LOG.error("Malformed refresh string (found ';' but no 'url='): " + refreshString); - } - return; - } - final StringBuilder builder = new StringBuilder(refreshString.substring(index + 4)); - if (StringUtils.isBlank(builder.toString())) { - //content='10; URL=' is treated as content='10' - url = getUrl(); - } - else { - if (builder.charAt(0) == '"' || builder.charAt(0) == 0x27) { - builder.deleteCharAt(0); - } - if (builder.charAt(builder.length() - 1) == '"' || builder.charAt(builder.length() - 1) == 0x27) { - builder.deleteCharAt(builder.length() - 1); + + String urlPart = refreshString.substring(index); + final char separator = urlPart.charAt(0); + if (";, \r\n\t".indexOf(separator) >= 0) { + urlPart = StringUtils.stripStart(urlPart, ";, \r\n\t"); + if (urlPart.toLowerCase(Locale.ROOT).startsWith("url")) { + urlPart = urlPart.substring(3); + urlPart = urlPart.trim(); + + if (urlPart.toLowerCase().startsWith("=")) { + urlPart = urlPart.substring(1); + urlPart = urlPart.trim(); + } } - final String urlString = builder.toString(); - try { - url = getFullyQualifiedUrl(urlString); + + if (StringUtils.isBlank(urlPart)) { + //content='10; URL=' is treated as content='10' + url = getUrl(); } - catch (final MalformedURLException e) { - if (LOG.isErrorEnabled()) { - LOG.error("Malformed URL in refresh string: " + refreshString, e); + else { + if (urlPart.charAt(0) == '"' || urlPart.charAt(0) == 0x27) { + urlPart = urlPart.substring(1); + } + if (urlPart.charAt(urlPart.length() - 1) == '"' || urlPart.charAt(urlPart.length() - 1) == 0x27) { + urlPart = urlPart.substring(0, urlPart.length() - 1); + } + try { + url = getFullyQualifiedUrl(urlPart); } - throw e; + catch (final MalformedURLException e) { + if (LOG.isErrorEnabled()) { + LOG.error("Malformed URL in refresh string: " + refreshString, e); + } + return; + } + } + } + else { + if (LOG.isErrorEnabled()) { + LOG.error("Malformed refresh string (separator after time missing): " + refreshString); } + return; } } diff --git a/src/test/java/org/htmlunit/html/HtmlPage6Test.java b/src/test/java/org/htmlunit/html/HtmlPage6Test.java new file mode 100644 index 0000000000..24ccae2f19 --- /dev/null +++ b/src/test/java/org/htmlunit/html/HtmlPage6Test.java @@ -0,0 +1,368 @@ +/* + * Copyright (c) 2002-2025 Gargoyle Software Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.htmlunit.html; + +import java.nio.charset.StandardCharsets; +import java.util.Collections; + +import org.htmlunit.WebDriverTestCase; +import org.htmlunit.junit.annotation.Alerts; +import org.htmlunit.util.MimeType; +import org.htmlunit.util.NameValuePair; +import org.junit.jupiter.api.Test; +import org.openqa.selenium.WebDriver; + +/** + * Tests for {@link HtmlPage}. + * + * @author Ahmed Ashour + * @author Marc Guillemot + * @author Ronald Brill + * @author Frank Danek + * @author Joerg Werner + */ +public class HtmlPage6Test extends WebDriverTestCase { + + /** + * Test auto-refresh from a meta tag. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_DefaultRefreshHandler() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_caseSensitivity() throws Exception { + testRefresh_MetaTag(""); + } + + /** + * Regression test for bug #954. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_spaceSeparator() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * Regression test for bug #954. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_commaSeparator() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"first", "1"}) + public void refresh_MetaTag_noSeparator() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * Test for bug #1002. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_no_url_label() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"wrong", "2", "§§URL§§abcd=§§URL§§second/"}) + public void refresh_MetaTag_wrong_url_label() throws Exception { + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + testRefresh_MetaTag(""); + } + + /** + * Test auto-refresh from a meta tag with no URL. + * @throws Exception if the test fails + */ + @Test + @Alerts({"first", "3", "§§URL§§"}) + public void refresh_MetaTag_NoUrl() throws Exception { + // todo testRefresh_MetaTag(""); + // todo testRefresh_MetaTag(""); + // todo testRefresh_MetaTag(""); + } + + /** + * Test auto-refresh from a meta tag with URL quoted. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_Quoted() throws Exception { + testRefresh_MetaTag(""); + } + + /** + * Test auto-refresh from a meta tag with URL partly quoted. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_PartlyQuoted() throws Exception { + testRefresh_MetaTag(""); + } + + /** + * Test that whitespace before and after ';' is permitted. + * + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_Whitespace() throws Exception { + testRefresh_MetaTag(""); + } + + /** + * Test that the refresh time can be a double ("3.4", for example), not just an integer. + * + * @throws Exception if an error occurs + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_MetaTag_Double() throws Exception { + testRefresh_MetaTag(""); + } + + private void testRefresh_MetaTag(final String metaTag) throws Exception { + final String firstContent = DOCTYPE_HTML + + "first§\n" + + metaTag.replace("§§URL§§", URL_SECOND.toString()) + "\n" + + ""; + + final String secondContent = DOCTYPE_HTML + + "second§"; + final String wrongContent = DOCTYPE_HTML + + "wrong§"; + + getMockWebConnection().setResponse(URL_SECOND, secondContent); + getMockWebConnection().setDefaultResponse(wrongContent); + + expandExpectedAlertsVariables(URL_FIRST); + final int count = getMockWebConnection().getRequestCount(); + final WebDriver driver = loadPage2(firstContent); + if (useRealBrowser()) { + Thread.sleep(DEFAULT_WAIT_TIME.multipliedBy(3).toMillis()); + } + verifyTitle2(DEFAULT_WAIT_TIME, driver, getExpectedAlerts()[0]); + assertEquals(Integer.parseInt(getExpectedAlerts()[1]), getMockWebConnection().getRequestCount() - count); + if (getExpectedAlerts().length > 2) { + final String exp = getExpectedAlerts()[2].replace("=http://", "=http:/"); + assertEquals(exp, getMockWebConnection().getLastWebRequest().getUrl().toString()); + } + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_DefaultRefreshHandler() throws Exception { + testRefresh_HttpResponseHeader("0;URL=§§URL§§"); + testRefresh_HttpResponseHeader("0; URL=§§URL§§"); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_caseSensitivity() throws Exception { + testRefresh_HttpResponseHeader("0; Url=§§URL§§"); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_spaceSeparator() throws Exception { + testRefresh_HttpResponseHeader("0 Url=§§URL§§"); + testRefresh_HttpResponseHeader("0\nUrl=§§URL§§"); + testRefresh_HttpResponseHeader("0\tUrl=§§URL§§"); + } + + /** + * Regression test for bug #954. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_commaSeparator() throws Exception { + testRefresh_HttpResponseHeader("0,Url=§§URL§§"); + testRefresh_HttpResponseHeader("0, Url=§§URL§§"); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"first", "1"}) + public void refresh_HttpResponseHeader_noSeparator() throws Exception { + testRefresh_HttpResponseHeader("0Url=§§URL§§"); + testRefresh_HttpResponseHeader("0§§URL§§"); + testRefresh_HttpResponseHeader("0abc=§§URL§§"); + testRefresh_HttpResponseHeader("0abc§§URL§§"); + } + + /** + * Test for bug #1002. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_no_url_label() throws Exception { + testRefresh_HttpResponseHeader("0;§§URL§§"); + testRefresh_HttpResponseHeader("0; §§URL§§"); + testRefresh_HttpResponseHeader("0 §§URL§§"); + testRefresh_HttpResponseHeader("0\n§§URL§§"); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"wrong", "2", "§§URL§§abcd=§§URL§§second/"}) + public void refresh_HttpResponseHeader_wrong_url_label() throws Exception { + testRefresh_HttpResponseHeader("0;abcd=§§URL§§"); + testRefresh_HttpResponseHeader("0; abcd=§§URL§§"); + testRefresh_HttpResponseHeader("0 abcd=§§URL§§"); + testRefresh_HttpResponseHeader("0\nabcd=§§URL§§"); + } + + /** + * Test auto-refresh from a meta tag with no URL. + * @throws Exception if the test fails + */ + @Test + @Alerts({"first", "3", "§§URL§§"}) + public void refresh_HttpResponseHeader_NoUrl() throws Exception { + // todo testRefresh_HttpResponseHeader("1"); + // todo testRefresh_HttpResponseHeader("1;"); + // todo testRefresh_HttpResponseHeader("1 "); + } + + /** + * Test auto-refresh from a meta tag with URL quoted. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_Quoted() throws Exception { + testRefresh_HttpResponseHeader("0;URL=\"§§URL§§\""); + } + + /** + * Test auto-refresh from a meta tag with URL partly quoted. + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_PartlyQuoted() throws Exception { + testRefresh_HttpResponseHeader("0;URL='§§URL§§"); + } + + /** + * Test that whitespace before and after ';' is permitted. + * + * @throws Exception if the test fails + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_Whitespace() throws Exception { + testRefresh_HttpResponseHeader("0 ; URL=§§URL§§"); + } + + /** + * @throws Exception if an error occurs + */ + @Test + @Alerts({"second", "2", "§§URL§§second/"}) + public void refresh_HttpResponseHeader_Double() throws Exception { + testRefresh_HttpResponseHeader("1.2 ; URL=§§URL§§"); + } + + + /** + * @throws Exception if an error occurs + */ + @Test + @Alerts({"wrong", "2", "§§URL§§2;URL=§§URL§§second/"}) + public void refresh_HttpResponseHeader_DoubleComma() throws Exception { + testRefresh_HttpResponseHeader("1,2;URL=§§URL§§"); + } + + private void testRefresh_HttpResponseHeader(final String refreshHeader) throws Exception { + final String firstContent = DOCTYPE_HTML + + "first§\n" + + ""; + final String secondContent = DOCTYPE_HTML + + "second§"; + final String wrongContent = DOCTYPE_HTML + + "wrong§"; + + final String header = refreshHeader.replace("§§URL§§", URL_SECOND.toString()); + getMockWebConnection().setResponse(URL_FIRST, firstContent, 200, "OK", MimeType.TEXT_HTML, Collections + .singletonList(new NameValuePair("Refresh", header))); + getMockWebConnection().setResponse(URL_SECOND, secondContent); + getMockWebConnection().setDefaultResponse(wrongContent); + + expandExpectedAlertsVariables(URL_FIRST); + final int count = getMockWebConnection().getRequestCount(); + final WebDriver driver = loadPage2(URL_FIRST, StandardCharsets.ISO_8859_1); + if (useRealBrowser()) { + Thread.sleep(DEFAULT_WAIT_TIME.multipliedBy(3).toMillis()); + } + verifyTitle2(DEFAULT_WAIT_TIME, driver, getExpectedAlerts()[0]); + assertEquals(Integer.parseInt(getExpectedAlerts()[1]), getMockWebConnection().getRequestCount() - count); + if (getExpectedAlerts().length > 2) { + final String exp = getExpectedAlerts()[2].replace("=http://", "=http:/"); + assertEquals(exp, getMockWebConnection().getLastWebRequest().getUrl().toString()); + } + } +} diff --git a/src/test/java/org/htmlunit/html/HtmlPageTest.java b/src/test/java/org/htmlunit/html/HtmlPageTest.java index 2b42eeaa2f..bf72def81e 100644 --- a/src/test/java/org/htmlunit/html/HtmlPageTest.java +++ b/src/test/java/org/htmlunit/html/HtmlPageTest.java @@ -747,60 +747,6 @@ public void getForms() throws Exception { assertEquals(expectedForms, page.getForms()); } - /** - * Test auto-refresh from a meta tag. - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTag_DefaultRefreshHandler() throws Exception { - testRefresh_MetaTag(""); - } - - /** - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTag_caseSensitivity() throws Exception { - testRefresh_MetaTag(""); - } - - /** - * Regression test for bug #954. - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTag_spaceSeparator() throws Exception { - testRefresh_MetaTag(""); - testRefresh_MetaTag(""); - } - - /** - * Test auto-refresh from a meta tag with no URL. - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTag_NoUrl() throws Exception { - final String firstContent = DOCTYPE_HTML - + "first\n" - + "\n" - + ""; - - final WebClient client = getWebClient(); - final List collectedItems = new ArrayList<>(); - client.setRefreshHandler(new LoggingRefreshHandler(collectedItems)); - - final MockWebConnection webConnection = new MockWebConnection(); - webConnection.setResponse(URL_FIRST, firstContent); - client.setWebConnection(webConnection); - - client.getPage(URL_FIRST); - - // avoid using equals() on URL because it takes to much time (due to ip resolution) - assertEquals("first", collectedItems.get(0)); - assertEquals(URL_FIRST, (URL) collectedItems.get(1)); - assertEquals(Integer.valueOf(1), collectedItems.get(2)); - } - /** * Ensures that if a page is supposed to refresh itself every certain amount of * time, and the ImmediateRefreshHandler is being used, an OOME is avoided by @@ -826,45 +772,6 @@ public void refresh_ImmediateRefresh_AvoidOOME() throws Exception { Thread.sleep(1000); } - /** - * Test auto-refresh from a meta tag with URL quoted. - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTagQuoted() throws Exception { - testRefresh_MetaTag(""); - } - - /** - * Test auto-refresh from a meta tag with URL partly quoted. - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTagPartlyQuoted() throws Exception { - testRefresh_MetaTag(""); - } - - private void testRefresh_MetaTag(final String metaTag) throws Exception { - final String firstContent = DOCTYPE_HTML - + "first\n" - + metaTag.replace("§§URL§§", URL_SECOND.toString()) + "\n" - + "\n" - + ""; - final String secondContent = DOCTYPE_HTML - + "second"; - - final WebClient client = getWebClient(); - - final MockWebConnection webConnection = new MockWebConnection(); - webConnection.setResponse(URL_FIRST, firstContent); - webConnection.setResponse(URL_SECOND, secondContent); - client.setWebConnection(webConnection); - - final HtmlPage page = client.getPage(URL_FIRST); - - assertEquals("second", page.getTitleText()); - } - /** * Test auto-refresh from a meta tag inside noscript. * @throws Exception if the test fails @@ -925,50 +832,6 @@ public void refresh_MetaTag_CustomRefreshHandler() throws Exception { assertEquals(Integer.valueOf(3), collectedItems.get(2)); } - /** - * Test that whitespace before and after ';' is permitted. - * - * @throws Exception if the test fails - */ - @Test - public void refresh_MetaTag_Whitespace() throws Exception { - testRefresh_MetaTag(""); - } - - /** - * Test that the refresh time can be a double ("3.4", for example), not just an integer. - * - * @throws Exception if an error occurs - */ - @Test - public void refresh_MetaTag_Double() throws Exception { - testRefresh_MetaTag(""); - } - - /** - * Test auto-refresh from a response header. - * @throws Exception if the test fails - */ - @Test - public void refresh_HttpResponseHeader() throws Exception { - final String firstContent = DOCTYPE_HTML - + "first\n" - + ""; - final String secondContent = DOCTYPE_HTML + "second"; - - final WebClient client = getWebClient(); - - final MockWebConnection webConnection = new MockWebConnection(); - webConnection.setResponse(URL_FIRST, firstContent, 200, "OK", MimeType.TEXT_HTML, Collections - .singletonList(new NameValuePair("Refresh", "2;URL=" + URL_SECOND))); - webConnection.setResponse(URL_SECOND, secondContent); - client.setWebConnection(webConnection); - - final HtmlPage page = client.getPage(URL_FIRST); - - assertEquals("second", page.getTitleText()); - } - /** * Test that the parent of the DOM Document (HtmlPage) is null. * @throws Exception if the test fails From 4ecfee46e3b532562ede9507c821b7004f7eb8c0 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Wed, 6 Aug 2025 17:55:07 +0200 Subject: [PATCH 08/39] add hint --- src/test/java/org/htmlunit/html/HtmlPage6Test.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/htmlunit/html/HtmlPage6Test.java b/src/test/java/org/htmlunit/html/HtmlPage6Test.java index 24ccae2f19..65dfb8ae1c 100644 --- a/src/test/java/org/htmlunit/html/HtmlPage6Test.java +++ b/src/test/java/org/htmlunit/html/HtmlPage6Test.java @@ -122,6 +122,7 @@ public void refresh_MetaTag_wrong_url_label() throws Exception { @Test @Alerts({"first", "3", "§§URL§§"}) public void refresh_MetaTag_NoUrl() throws Exception { + // currently an endless loop // todo testRefresh_MetaTag(""); // todo testRefresh_MetaTag(""); // todo testRefresh_MetaTag(""); @@ -282,6 +283,7 @@ public void refresh_HttpResponseHeader_wrong_url_label() throws Exception { @Test @Alerts({"first", "3", "§§URL§§"}) public void refresh_HttpResponseHeader_NoUrl() throws Exception { + // currently an endless loop // todo testRefresh_HttpResponseHeader("1"); // todo testRefresh_HttpResponseHeader("1;"); // todo testRefresh_HttpResponseHeader("1 "); From ea96657a7b708cc806398c7ce19eecb4a599d54b Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Wed, 6 Aug 2025 17:55:33 +0200 Subject: [PATCH 09/39] simple test for isssue #1001 --- .../libraries/Jasmine3x9x0SmokeTest.java | 64 + .../libraries/jasmine/jasmine_3.9.0/boot0.js | 42 + .../libraries/jasmine/jasmine_3.9.0/boot1.js | 111 + .../jasmine/jasmine_3.9.0/jasmine-html.js | 856 ++ .../jasmine/jasmine_3.9.0/jasmine.js | 9876 +++++++++++++++++ .../jasmine/jasmine_3.9.0/smoketest.html | 22 + 6 files changed, 10971 insertions(+) create mode 100644 src/test/java/org/htmlunit/libraries/Jasmine3x9x0SmokeTest.java create mode 100644 src/test/resources/libraries/jasmine/jasmine_3.9.0/boot0.js create mode 100644 src/test/resources/libraries/jasmine/jasmine_3.9.0/boot1.js create mode 100644 src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine-html.js create mode 100644 src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine.js create mode 100644 src/test/resources/libraries/jasmine/jasmine_3.9.0/smoketest.html diff --git a/src/test/java/org/htmlunit/libraries/Jasmine3x9x0SmokeTest.java b/src/test/java/org/htmlunit/libraries/Jasmine3x9x0SmokeTest.java new file mode 100644 index 0000000000..24989809c2 --- /dev/null +++ b/src/test/java/org/htmlunit/libraries/Jasmine3x9x0SmokeTest.java @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2002-2025 Gargoyle Software Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.htmlunit.libraries; + +import org.eclipse.jetty.server.Server; +import org.htmlunit.WebClient; +import org.htmlunit.WebServerTestCase; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +/** + * A simple smoke test for jasmine 3.9.0. + * See issue #1001 for more. + * + * @author Ronald Brill + */ +public class Jasmine3x9x0SmokeTest extends WebServerTestCase { + + /** The server. */ + protected static Server SERVER_; + + /** + * @throws Exception if an error occurs + */ + @BeforeAll + public static void startSesrver() throws Exception { + SERVER_ = WebServerTestCase.createWebServer("src/test/resources/libraries/jasmine/jasmine_3.9.0", null); + } + + /** + * @throws Exception if an error occurs + */ + @AfterAll + public static void stopServer() throws Exception { + if (SERVER_ != null) { + SERVER_.stop(); + SERVER_.destroy(); + SERVER_ = null; + } + } + + /** + * @throws Exception if an error occurs + */ + @Test + public void shouldTestJavaScript() throws Exception { + final WebClient webClient = getWebClient(); + + webClient.getPage(URL_FIRST + "smoketest.html"); + } +} diff --git a/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot0.js b/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot0.js new file mode 100644 index 0000000000..ca72e4962e --- /dev/null +++ b/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot0.js @@ -0,0 +1,42 @@ +/** + This file starts the process of "booting" Jasmine. It initializes Jasmine, + makes its globals available, and creates the env. This file should be loaded + after `jasmine.js` and `jasmine_html.js`, but before `boot1.js` or any project + source files or spec files are loaded. + */ +(function() { + var jasmineRequire = window.jasmineRequire || require('./jasmine.js'); + + /** + * ## Require & Instantiate + * + * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference. + */ + var jasmine = jasmineRequire.core(jasmineRequire), + global = jasmine.getGlobal(); + global.jasmine = jasmine; + + /** + * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference. + */ + jasmineRequire.html(jasmine); + + /** + * Create the Jasmine environment. This is used to run all specs in a project. + */ + var env = jasmine.getEnv(); + + /** + * ## The Global Interface + * + * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged. + */ + var jasmineInterface = jasmineRequire.interface(jasmine, env); + + /** + * Add all of the Jasmine global/public interface to the global scope, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`. + */ + for (var property in jasmineInterface) { + global[property] = jasmineInterface[property]; + } +}()); diff --git a/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot1.js b/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot1.js new file mode 100644 index 0000000000..5df04bb85f --- /dev/null +++ b/src/test/resources/libraries/jasmine/jasmine_3.9.0/boot1.js @@ -0,0 +1,111 @@ +/** + This file finishes "booting" Jasmine, performing all of the necessary + initialization before executing the loaded environment and all of a project's + specs. This file should be loaded after `boot0.js` but before any project + source files or spec files are loaded. Thus this file can also be used to + customize Jasmine for a project. + + If a project is using Jasmine via the standalone distribution, this file can + be customized directly. If you only wish to configure the Jasmine env, you + can load another file that calls `jasmine.getEnv().configure({...})` + after `boot0.js` is loaded and before this file is loaded. + */ + +(function() { + var env = jasmine.getEnv(); + + /** + * ## Runner Parameters + * + * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface. + */ + + var queryString = new jasmine.QueryString({ + getWindowLocation: function() { return window.location; } + }); + + var filterSpecs = !!queryString.getParam("spec"); + + var config = { + failFast: queryString.getParam("failFast"), + oneFailurePerSpec: queryString.getParam("oneFailurePerSpec"), + hideDisabled: queryString.getParam("hideDisabled") + }; + + var random = queryString.getParam("random"); + + if (random !== undefined && random !== "") { + config.random = random; + } + + var seed = queryString.getParam("seed"); + if (seed) { + config.seed = seed; + } + + /** + * ## Reporters + * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any). + */ + var htmlReporter = new jasmine.HtmlReporter({ + env: env, + navigateWithNewParam: function(key, value) { return queryString.navigateWithNewParam(key, value); }, + addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, + getContainer: function() { return document.body; }, + createElement: function() { return document.createElement.apply(document, arguments); }, + createTextNode: function() { return document.createTextNode.apply(document, arguments); }, + timer: new jasmine.Timer(), + filterSpecs: filterSpecs + }); + + /** + * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript. + */ + env.addReporter(jsApiReporter); + env.addReporter(htmlReporter); + + /** + * Filter which specs will be run by matching the start of the full name against the `spec` query param. + */ + var specFilter = new jasmine.HtmlSpecFilter({ + filterString: function() { return queryString.getParam("spec"); } + }); + + config.specFilter = function(spec) { + return specFilter.matches(spec.getFullName()); + }; + + env.configure(config); + + /** + * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack. + */ + window.setTimeout = window.setTimeout; + window.setInterval = window.setInterval; + window.clearTimeout = window.clearTimeout; + window.clearInterval = window.clearInterval; + + /** + * ## Execution + * + * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded. + */ + var currentWindowOnload = window.onload; + + window.onload = function() { + if (currentWindowOnload) { + currentWindowOnload(); + } + htmlReporter.initialize(); + env.execute(); + }; + + /** + * Helper function for readability above. + */ + function extend(destination, source) { + for (var property in source) destination[property] = source[property]; + return destination; + } + +}()); diff --git a/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine-html.js b/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine-html.js new file mode 100644 index 0000000000..8399eda422 --- /dev/null +++ b/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine-html.js @@ -0,0 +1,856 @@ +/* +Copyright (c) 2008-2021 Pivotal Labs + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ +var jasmineRequire = window.jasmineRequire || require('./jasmine.js'); + +jasmineRequire.html = function(j$) { + j$.ResultsNode = jasmineRequire.ResultsNode(); + j$.HtmlReporter = jasmineRequire.HtmlReporter(j$); + j$.QueryString = jasmineRequire.QueryString(); + j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter(); +}; + +jasmineRequire.HtmlReporter = function(j$) { + function ResultsStateBuilder() { + this.topResults = new j$.ResultsNode({}, '', null); + this.currentParent = this.topResults; + this.specsExecuted = 0; + this.failureCount = 0; + this.pendingSpecCount = 0; + } + + ResultsStateBuilder.prototype.suiteStarted = function(result) { + this.currentParent.addChild(result, 'suite'); + this.currentParent = this.currentParent.last(); + }; + + ResultsStateBuilder.prototype.suiteDone = function(result) { + this.currentParent.updateResult(result); + if (this.currentParent !== this.topResults) { + this.currentParent = this.currentParent.parent; + } + + if (result.status === 'failed') { + this.failureCount++; + } + }; + + ResultsStateBuilder.prototype.specStarted = function(result) {}; + + ResultsStateBuilder.prototype.specDone = function(result) { + this.currentParent.addChild(result, 'spec'); + + if (result.status !== 'excluded') { + this.specsExecuted++; + } + + if (result.status === 'failed') { + this.failureCount++; + } + + if (result.status == 'pending') { + this.pendingSpecCount++; + } + }; + + function HtmlReporter(options) { + var config = function() { + return (options.env && options.env.configuration()) || {}; + }, + getContainer = options.getContainer, + createElement = options.createElement, + createTextNode = options.createTextNode, + navigateWithNewParam = options.navigateWithNewParam || function() {}, + addToExistingQueryString = + options.addToExistingQueryString || defaultQueryString, + filterSpecs = options.filterSpecs, + htmlReporterMain, + symbols, + deprecationWarnings = []; + + this.initialize = function() { + clearPrior(); + htmlReporterMain = createDom( + 'div', + { className: 'jasmine_html-reporter' }, + createDom( + 'div', + { className: 'jasmine-banner' }, + createDom('a', { + className: 'jasmine-title', + href: 'http://jasmine.github.io/', + target: '_blank' + }), + createDom('span', { className: 'jasmine-version' }, j$.version) + ), + createDom('ul', { className: 'jasmine-symbol-summary' }), + createDom('div', { className: 'jasmine-alert' }), + createDom( + 'div', + { className: 'jasmine-results' }, + createDom('div', { className: 'jasmine-failures' }) + ) + ); + getContainer().appendChild(htmlReporterMain); + }; + + var totalSpecsDefined; + this.jasmineStarted = function(options) { + totalSpecsDefined = options.totalSpecsDefined || 0; + }; + + var summary = createDom('div', { className: 'jasmine-summary' }); + + var stateBuilder = new ResultsStateBuilder(); + + this.suiteStarted = function(result) { + stateBuilder.suiteStarted(result); + }; + + this.suiteDone = function(result) { + stateBuilder.suiteDone(result); + + if (result.status === 'failed') { + failures.push(failureDom(result)); + } + addDeprecationWarnings(result, 'suite'); + }; + + this.specStarted = function(result) { + stateBuilder.specStarted(result); + }; + + var failures = []; + this.specDone = function(result) { + stateBuilder.specDone(result); + + if (noExpectations(result)) { + var noSpecMsg = "Spec '" + result.fullName + "' has no expectations."; + if (result.status === 'failed') { + console.error(noSpecMsg); + } else { + console.warn(noSpecMsg); + } + } + + if (!symbols) { + symbols = find('.jasmine-symbol-summary'); + } + + symbols.appendChild( + createDom('li', { + className: this.displaySpecInCorrectFormat(result), + id: 'spec_' + result.id, + title: result.fullName + }) + ); + + if (result.status === 'failed') { + failures.push(failureDom(result)); + } + + addDeprecationWarnings(result, 'spec'); + }; + + this.displaySpecInCorrectFormat = function(result) { + return noExpectations(result) && result.status === 'passed' + ? 'jasmine-empty' + : this.resultStatus(result.status); + }; + + this.resultStatus = function(status) { + if (status === 'excluded') { + return config().hideDisabled + ? 'jasmine-excluded-no-display' + : 'jasmine-excluded'; + } + return 'jasmine-' + status; + }; + + this.jasmineDone = function(doneResult) { + var banner = find('.jasmine-banner'); + var alert = find('.jasmine-alert'); + var order = doneResult && doneResult.order; + var i; + alert.appendChild( + createDom( + 'span', + { className: 'jasmine-duration' }, + 'finished in ' + doneResult.totalTime / 1000 + 's' + ) + ); + + banner.appendChild(optionsMenu(config())); + + if (stateBuilder.specsExecuted < totalSpecsDefined) { + var skippedMessage = + 'Ran ' + + stateBuilder.specsExecuted + + ' of ' + + totalSpecsDefined + + ' specs - run all'; + // include window.location.pathname to fix issue with karma-jasmine-html-reporter in angular: see https://github.com/jasmine/jasmine/issues/1906 + var skippedLink = + (window.location.pathname || '') + + addToExistingQueryString('spec', ''); + alert.appendChild( + createDom( + 'span', + { className: 'jasmine-bar jasmine-skipped' }, + createDom( + 'a', + { href: skippedLink, title: 'Run all specs' }, + skippedMessage + ) + ) + ); + } + var statusBarMessage = ''; + var statusBarClassName = 'jasmine-overall-result jasmine-bar '; + var globalFailures = (doneResult && doneResult.failedExpectations) || []; + var failed = stateBuilder.failureCount + globalFailures.length > 0; + + if (totalSpecsDefined > 0 || failed) { + statusBarMessage += + pluralize('spec', stateBuilder.specsExecuted) + + ', ' + + pluralize('failure', stateBuilder.failureCount); + if (stateBuilder.pendingSpecCount) { + statusBarMessage += + ', ' + pluralize('pending spec', stateBuilder.pendingSpecCount); + } + } + + if (doneResult.overallStatus === 'passed') { + statusBarClassName += ' jasmine-passed '; + } else if (doneResult.overallStatus === 'incomplete') { + statusBarClassName += ' jasmine-incomplete '; + statusBarMessage = + 'Incomplete: ' + + doneResult.incompleteReason + + ', ' + + statusBarMessage; + } else { + statusBarClassName += ' jasmine-failed '; + } + + var seedBar; + if (order && order.random) { + seedBar = createDom( + 'span', + { className: 'jasmine-seed-bar' }, + ', randomized with seed ', + createDom( + 'a', + { + title: 'randomized with seed ' + order.seed, + href: seedHref(order.seed) + }, + order.seed + ) + ); + } + + alert.appendChild( + createDom( + 'span', + { className: statusBarClassName }, + statusBarMessage, + seedBar + ) + ); + + var errorBarClassName = 'jasmine-bar jasmine-errored'; + var afterAllMessagePrefix = 'AfterAll '; + + for (i = 0; i < globalFailures.length; i++) { + alert.appendChild( + createDom( + 'span', + { className: errorBarClassName }, + globalFailureMessage(globalFailures[i]) + ) + ); + } + + function globalFailureMessage(failure) { + if (failure.globalErrorType === 'load') { + var prefix = 'Error during loading: ' + failure.message; + + if (failure.filename) { + return ( + prefix + ' in ' + failure.filename + ' line ' + failure.lineno + ); + } else { + return prefix; + } + } else { + return afterAllMessagePrefix + failure.message; + } + } + + addDeprecationWarnings(doneResult); + + for (i = 0; i < deprecationWarnings.length; i++) { + var context; + + switch (deprecationWarnings[i].runnableType) { + case 'spec': + context = '(in spec: ' + deprecationWarnings[i].runnableName + ')'; + break; + case 'suite': + context = '(in suite: ' + deprecationWarnings[i].runnableName + ')'; + break; + default: + context = ''; + } + + alert.appendChild( + createDom( + 'span', + { className: 'jasmine-bar jasmine-warning' }, + 'DEPRECATION: ' + deprecationWarnings[i].message, + createDom('br'), + context + ) + ); + } + + var results = find('.jasmine-results'); + results.appendChild(summary); + + summaryList(stateBuilder.topResults, summary); + + if (failures.length) { + alert.appendChild( + createDom( + 'span', + { className: 'jasmine-menu jasmine-bar jasmine-spec-list' }, + createDom('span', {}, 'Spec List | '), + createDom( + 'a', + { className: 'jasmine-failures-menu', href: '#' }, + 'Failures' + ) + ) + ); + alert.appendChild( + createDom( + 'span', + { className: 'jasmine-menu jasmine-bar jasmine-failure-list' }, + createDom( + 'a', + { className: 'jasmine-spec-list-menu', href: '#' }, + 'Spec List' + ), + createDom('span', {}, ' | Failures ') + ) + ); + + find('.jasmine-failures-menu').onclick = function() { + setMenuModeTo('jasmine-failure-list'); + return false; + }; + find('.jasmine-spec-list-menu').onclick = function() { + setMenuModeTo('jasmine-spec-list'); + return false; + }; + + setMenuModeTo('jasmine-failure-list'); + + var failureNode = find('.jasmine-failures'); + for (i = 0; i < failures.length; i++) { + failureNode.appendChild(failures[i]); + } + } + }; + + return this; + + function failureDom(result) { + var failure = createDom( + 'div', + { className: 'jasmine-spec-detail jasmine-failed' }, + failureDescription(result, stateBuilder.currentParent), + createDom('div', { className: 'jasmine-messages' }) + ); + var messages = failure.childNodes[1]; + + for (var i = 0; i < result.failedExpectations.length; i++) { + var expectation = result.failedExpectations[i]; + messages.appendChild( + createDom( + 'div', + { className: 'jasmine-result-message' }, + expectation.message + ) + ); + messages.appendChild( + createDom( + 'div', + { className: 'jasmine-stack-trace' }, + expectation.stack + ) + ); + } + + if (result.failedExpectations.length === 0) { + messages.appendChild( + createDom( + 'div', + { className: 'jasmine-result-message' }, + 'Spec has no expectations' + ) + ); + } + + return failure; + } + + function summaryList(resultsTree, domParent) { + var specListNode; + for (var i = 0; i < resultsTree.children.length; i++) { + var resultNode = resultsTree.children[i]; + if (filterSpecs && !hasActiveSpec(resultNode)) { + continue; + } + if (resultNode.type === 'suite') { + var suiteListNode = createDom( + 'ul', + { className: 'jasmine-suite', id: 'suite-' + resultNode.result.id }, + createDom( + 'li', + { + className: + 'jasmine-suite-detail jasmine-' + resultNode.result.status + }, + createDom( + 'a', + { href: specHref(resultNode.result) }, + resultNode.result.description + ) + ) + ); + + summaryList(resultNode, suiteListNode); + domParent.appendChild(suiteListNode); + } + if (resultNode.type === 'spec') { + if (domParent.getAttribute('class') !== 'jasmine-specs') { + specListNode = createDom('ul', { className: 'jasmine-specs' }); + domParent.appendChild(specListNode); + } + var specDescription = resultNode.result.description; + if (noExpectations(resultNode.result)) { + specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription; + } + if ( + resultNode.result.status === 'pending' && + resultNode.result.pendingReason !== '' + ) { + specDescription = + specDescription + + ' PENDING WITH MESSAGE: ' + + resultNode.result.pendingReason; + } + specListNode.appendChild( + createDom( + 'li', + { + className: 'jasmine-' + resultNode.result.status, + id: 'spec-' + resultNode.result.id + }, + createDom( + 'a', + { href: specHref(resultNode.result) }, + specDescription + ) + ) + ); + } + } + } + + function optionsMenu(config) { + var optionsMenuDom = createDom( + 'div', + { className: 'jasmine-run-options' }, + createDom('span', { className: 'jasmine-trigger' }, 'Options'), + createDom( + 'div', + { className: 'jasmine-payload' }, + createDom( + 'div', + { className: 'jasmine-stop-on-failure' }, + createDom('input', { + className: 'jasmine-fail-fast', + id: 'jasmine-fail-fast', + type: 'checkbox' + }), + createDom( + 'label', + { className: 'jasmine-label', for: 'jasmine-fail-fast' }, + 'stop execution on spec failure' + ) + ), + createDom( + 'div', + { className: 'jasmine-throw-failures' }, + createDom('input', { + className: 'jasmine-throw', + id: 'jasmine-throw-failures', + type: 'checkbox' + }), + createDom( + 'label', + { className: 'jasmine-label', for: 'jasmine-throw-failures' }, + 'stop spec on expectation failure' + ) + ), + createDom( + 'div', + { className: 'jasmine-random-order' }, + createDom('input', { + className: 'jasmine-random', + id: 'jasmine-random-order', + type: 'checkbox' + }), + createDom( + 'label', + { className: 'jasmine-label', for: 'jasmine-random-order' }, + 'run tests in random order' + ) + ), + createDom( + 'div', + { className: 'jasmine-hide-disabled' }, + createDom('input', { + className: 'jasmine-disabled', + id: 'jasmine-hide-disabled', + type: 'checkbox' + }), + createDom( + 'label', + { className: 'jasmine-label', for: 'jasmine-hide-disabled' }, + 'hide disabled tests' + ) + ) + ) + ); + + var failFastCheckbox = optionsMenuDom.querySelector('#jasmine-fail-fast'); + failFastCheckbox.checked = config.stopOnSpecFailure; + failFastCheckbox.onclick = function() { + navigateWithNewParam('failFast', !config.stopOnSpecFailure); + }; + + var throwCheckbox = optionsMenuDom.querySelector( + '#jasmine-throw-failures' + ); + throwCheckbox.checked = config.stopSpecOnExpectationFailure; + throwCheckbox.onclick = function() { + navigateWithNewParam( + 'oneFailurePerSpec', + !config.stopSpecOnExpectationFailure + ); + }; + + var randomCheckbox = optionsMenuDom.querySelector( + '#jasmine-random-order' + ); + randomCheckbox.checked = config.random; + randomCheckbox.onclick = function() { + navigateWithNewParam('random', !config.random); + }; + + var hideDisabled = optionsMenuDom.querySelector('#jasmine-hide-disabled'); + hideDisabled.checked = config.hideDisabled; + hideDisabled.onclick = function() { + navigateWithNewParam('hideDisabled', !config.hideDisabled); + }; + + var optionsTrigger = optionsMenuDom.querySelector('.jasmine-trigger'), + optionsPayload = optionsMenuDom.querySelector('.jasmine-payload'), + isOpen = /\bjasmine-open\b/; + + optionsTrigger.onclick = function() { + if (isOpen.test(optionsPayload.className)) { + optionsPayload.className = optionsPayload.className.replace( + isOpen, + '' + ); + } else { + optionsPayload.className += ' jasmine-open'; + } + }; + + return optionsMenuDom; + } + + function failureDescription(result, suite) { + var wrapper = createDom( + 'div', + { className: 'jasmine-description' }, + createDom( + 'a', + { title: result.description, href: specHref(result) }, + result.description + ) + ); + var suiteLink; + + while (suite && suite.parent) { + wrapper.insertBefore(createTextNode(' > '), wrapper.firstChild); + suiteLink = createDom( + 'a', + { href: suiteHref(suite) }, + suite.result.description + ); + wrapper.insertBefore(suiteLink, wrapper.firstChild); + + suite = suite.parent; + } + + return wrapper; + } + + function suiteHref(suite) { + var els = []; + + while (suite && suite.parent) { + els.unshift(suite.result.description); + suite = suite.parent; + } + + // include window.location.pathname to fix issue with karma-jasmine-html-reporter in angular: see https://github.com/jasmine/jasmine/issues/1906 + return ( + (window.location.pathname || '') + + addToExistingQueryString('spec', els.join(' ')) + ); + } + + function addDeprecationWarnings(result, runnableType) { + if (result && result.deprecationWarnings) { + for (var i = 0; i < result.deprecationWarnings.length; i++) { + var warning = result.deprecationWarnings[i].message; + if (!j$.util.arrayContains(warning)) { + deprecationWarnings.push({ + message: warning, + runnableName: result.fullName, + runnableType: runnableType + }); + } + } + } + } + + function find(selector) { + return getContainer().querySelector('.jasmine_html-reporter ' + selector); + } + + function clearPrior() { + // return the reporter + var oldReporter = find(''); + + if (oldReporter) { + getContainer().removeChild(oldReporter); + } + } + + function createDom(type, attrs, childrenVarArgs) { + var el = createElement(type); + + for (var i = 2; i < arguments.length; i++) { + var child = arguments[i]; + + if (typeof child === 'string') { + el.appendChild(createTextNode(child)); + } else { + if (child) { + el.appendChild(child); + } + } + } + + for (var attr in attrs) { + if (attr == 'className') { + el[attr] = attrs[attr]; + } else { + el.setAttribute(attr, attrs[attr]); + } + } + + return el; + } + + function pluralize(singular, count) { + var word = count == 1 ? singular : singular + 's'; + + return '' + count + ' ' + word; + } + + function specHref(result) { + // include window.location.pathname to fix issue with karma-jasmine-html-reporter in angular: see https://github.com/jasmine/jasmine/issues/1906 + return ( + (window.location.pathname || '') + + addToExistingQueryString('spec', result.fullName) + ); + } + + function seedHref(seed) { + // include window.location.pathname to fix issue with karma-jasmine-html-reporter in angular: see https://github.com/jasmine/jasmine/issues/1906 + return ( + (window.location.pathname || '') + + addToExistingQueryString('seed', seed) + ); + } + + function defaultQueryString(key, value) { + return '?' + key + '=' + value; + } + + function setMenuModeTo(mode) { + htmlReporterMain.setAttribute('class', 'jasmine_html-reporter ' + mode); + } + + function noExpectations(result) { + var allExpectations = + result.failedExpectations.length + result.passedExpectations.length; + + return ( + allExpectations === 0 && + (result.status === 'passed' || result.status === 'failed') + ); + } + + function hasActiveSpec(resultNode) { + if (resultNode.type == 'spec' && resultNode.result.status != 'excluded') { + return true; + } + + if (resultNode.type == 'suite') { + for (var i = 0, j = resultNode.children.length; i < j; i++) { + if (hasActiveSpec(resultNode.children[i])) { + return true; + } + } + } + } + } + + return HtmlReporter; +}; + +jasmineRequire.HtmlSpecFilter = function() { + function HtmlSpecFilter(options) { + var filterString = + options && + options.filterString() && + options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); + var filterPattern = new RegExp(filterString); + + this.matches = function(specName) { + return filterPattern.test(specName); + }; + } + + return HtmlSpecFilter; +}; + +jasmineRequire.ResultsNode = function() { + function ResultsNode(result, type, parent) { + this.result = result; + this.type = type; + this.parent = parent; + + this.children = []; + + this.addChild = function(result, type) { + this.children.push(new ResultsNode(result, type, this)); + }; + + this.last = function() { + return this.children[this.children.length - 1]; + }; + + this.updateResult = function(result) { + this.result = result; + }; + } + + return ResultsNode; +}; + +jasmineRequire.QueryString = function() { + function QueryString(options) { + this.navigateWithNewParam = function(key, value) { + options.getWindowLocation().search = this.fullStringWithNewParam( + key, + value + ); + }; + + this.fullStringWithNewParam = function(key, value) { + var paramMap = queryStringToParamMap(); + paramMap[key] = value; + return toQueryString(paramMap); + }; + + this.getParam = function(key) { + return queryStringToParamMap()[key]; + }; + + return this; + + function toQueryString(paramMap) { + var qStrPairs = []; + for (var prop in paramMap) { + qStrPairs.push( + encodeURIComponent(prop) + '=' + encodeURIComponent(paramMap[prop]) + ); + } + return '?' + qStrPairs.join('&'); + } + + function queryStringToParamMap() { + var paramStr = options.getWindowLocation().search.substring(1), + params = [], + paramMap = {}; + + if (paramStr.length > 0) { + params = paramStr.split('&'); + for (var i = 0; i < params.length; i++) { + var p = params[i].split('='); + var value = decodeURIComponent(p[1]); + if (value === 'true' || value === 'false') { + value = JSON.parse(value); + } + paramMap[decodeURIComponent(p[0])] = value; + } + } + + return paramMap; + } + } + + return QueryString; +}; diff --git a/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine.js b/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine.js new file mode 100644 index 0000000000..67ae380509 --- /dev/null +++ b/src/test/resources/libraries/jasmine/jasmine_3.9.0/jasmine.js @@ -0,0 +1,9876 @@ +/* +Copyright (c) 2008-2021 Pivotal Labs + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ +// eslint-disable-next-line no-unused-vars +var getJasmineRequireObj = (function(jasmineGlobal) { + var jasmineRequire; + + if ( + typeof module !== 'undefined' && + module.exports && + typeof exports !== 'undefined' + ) { + if (typeof global !== 'undefined') { + jasmineGlobal = global; + } else { + jasmineGlobal = {}; + } + jasmineRequire = exports; + } else { + if ( + typeof window !== 'undefined' && + typeof window.toString === 'function' && + window.toString() === '[object GjsGlobal]' + ) { + jasmineGlobal = window; + } + jasmineRequire = jasmineGlobal.jasmineRequire = {}; + } + + function getJasmineRequire() { + return jasmineRequire; + } + + getJasmineRequire().core = function(jRequire) { + var j$ = {}; + + jRequire.base(j$, jasmineGlobal); + j$.util = jRequire.util(j$); + j$.errors = jRequire.errors(); + j$.formatErrorMsg = jRequire.formatErrorMsg(); + j$.Any = jRequire.Any(j$); + j$.Anything = jRequire.Anything(j$); + j$.CallTracker = jRequire.CallTracker(j$); + j$.MockDate = jRequire.MockDate(); + j$.getClearStack = jRequire.clearStack(j$); + j$.Clock = jRequire.Clock(); + j$.DelayedFunctionScheduler = jRequire.DelayedFunctionScheduler(j$); + j$.Env = jRequire.Env(j$); + j$.StackTrace = jRequire.StackTrace(j$); + j$.ExceptionFormatter = jRequire.ExceptionFormatter(j$); + j$.ExpectationFilterChain = jRequire.ExpectationFilterChain(); + j$.Expector = jRequire.Expector(j$); + j$.Expectation = jRequire.Expectation(j$); + j$.buildExpectationResult = jRequire.buildExpectationResult(j$); + j$.JsApiReporter = jRequire.JsApiReporter(j$); + j$.asymmetricEqualityTesterArgCompatShim = jRequire.asymmetricEqualityTesterArgCompatShim( + j$ + ); + j$.makePrettyPrinter = jRequire.makePrettyPrinter(j$); + j$.pp = j$.makePrettyPrinter(); + j$.MatchersUtil = jRequire.MatchersUtil(j$); + j$.matchersUtil = new j$.MatchersUtil({ + customTesters: [], + pp: j$.pp + }); + + j$.ObjectContaining = jRequire.ObjectContaining(j$); + j$.ArrayContaining = jRequire.ArrayContaining(j$); + j$.ArrayWithExactContents = jRequire.ArrayWithExactContents(j$); + j$.MapContaining = jRequire.MapContaining(j$); + j$.SetContaining = jRequire.SetContaining(j$); + j$.QueueRunner = jRequire.QueueRunner(j$); + j$.ReportDispatcher = jRequire.ReportDispatcher(j$); + j$.Spec = jRequire.Spec(j$); + j$.Spy = jRequire.Spy(j$); + j$.SpyFactory = jRequire.SpyFactory(j$); + j$.SpyRegistry = jRequire.SpyRegistry(j$); + j$.SpyStrategy = jRequire.SpyStrategy(j$); + j$.StringMatching = jRequire.StringMatching(j$); + j$.UserContext = jRequire.UserContext(j$); + j$.Suite = jRequire.Suite(j$); + j$.Timer = jRequire.Timer(); + j$.TreeProcessor = jRequire.TreeProcessor(); + j$.version = jRequire.version(); + j$.Order = jRequire.Order(); + j$.DiffBuilder = jRequire.DiffBuilder(j$); + j$.NullDiffBuilder = jRequire.NullDiffBuilder(j$); + j$.ObjectPath = jRequire.ObjectPath(j$); + j$.MismatchTree = jRequire.MismatchTree(j$); + j$.GlobalErrors = jRequire.GlobalErrors(j$); + + j$.Truthy = jRequire.Truthy(j$); + j$.Falsy = jRequire.Falsy(j$); + j$.Empty = jRequire.Empty(j$); + j$.NotEmpty = jRequire.NotEmpty(j$); + + j$.matchers = jRequire.requireMatchers(jRequire, j$); + j$.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$); + + return j$; + }; + + return getJasmineRequire; +})(this); + +getJasmineRequireObj().requireMatchers = function(jRequire, j$) { + var availableMatchers = [ + 'nothing', + 'toBe', + 'toBeCloseTo', + 'toBeDefined', + 'toBeInstanceOf', + 'toBeFalse', + 'toBeFalsy', + 'toBeGreaterThan', + 'toBeGreaterThanOrEqual', + 'toBeLessThan', + 'toBeLessThanOrEqual', + 'toBeNaN', + 'toBeNegativeInfinity', + 'toBeNull', + 'toBePositiveInfinity', + 'toBeTrue', + 'toBeTruthy', + 'toBeUndefined', + 'toContain', + 'toEqual', + 'toHaveSize', + 'toHaveBeenCalled', + 'toHaveBeenCalledBefore', + 'toHaveBeenCalledOnceWith', + 'toHaveBeenCalledTimes', + 'toHaveBeenCalledWith', + 'toHaveClass', + 'toMatch', + 'toThrow', + 'toThrowError', + 'toThrowMatching' + ], + matchers = {}; + + for (var i = 0; i < availableMatchers.length; i++) { + var name = availableMatchers[i]; + matchers[name] = jRequire[name](j$); + } + + return matchers; +}; + +getJasmineRequireObj().base = function(j$, jasmineGlobal) { + j$.unimplementedMethod_ = function() { + throw new Error('unimplemented method'); + }; + + /** + * Maximum object depth the pretty printer will print to. + * Set this to a lower value to speed up pretty printing if you have large objects. + * @name jasmine.MAX_PRETTY_PRINT_DEPTH + * @since 1.3.0 + */ + j$.MAX_PRETTY_PRINT_DEPTH = 8; + /** + * Maximum number of array elements to display when pretty printing objects. + * This will also limit the number of keys and values displayed for an object. + * Elements past this number will be ellipised. + * @name jasmine.MAX_PRETTY_PRINT_ARRAY_LENGTH + * @since 2.7.0 + */ + j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = 50; + /** + * Maximum number of characters to display when pretty printing objects. + * Characters past this number will be ellipised. + * @name jasmine.MAX_PRETTY_PRINT_CHARS + * @since 2.9.0 + */ + j$.MAX_PRETTY_PRINT_CHARS = 1000; + /** + * Default number of milliseconds Jasmine will wait for an asynchronous spec to complete. + * @name jasmine.DEFAULT_TIMEOUT_INTERVAL + * @since 1.3.0 + */ + j$.DEFAULT_TIMEOUT_INTERVAL = 5000; + + j$.getGlobal = function() { + return jasmineGlobal; + }; + + /** + * Get the currently booted Jasmine Environment. + * + * @name jasmine.getEnv + * @since 1.3.0 + * @function + * @return {Env} + */ + j$.getEnv = function(options) { + var env = (j$.currentEnv_ = j$.currentEnv_ || new j$.Env(options)); + //jasmine. singletons in here (setTimeout blah blah). + return env; + }; + + j$.isArray_ = function(value) { + return j$.isA_('Array', value); + }; + + j$.isObject_ = function(value) { + return ( + !j$.util.isUndefined(value) && value !== null && j$.isA_('Object', value) + ); + }; + + j$.isString_ = function(value) { + return j$.isA_('String', value); + }; + + j$.isNumber_ = function(value) { + return j$.isA_('Number', value); + }; + + j$.isFunction_ = function(value) { + return j$.isA_('Function', value); + }; + + j$.isAsyncFunction_ = function(value) { + return j$.isA_('AsyncFunction', value); + }; + + j$.isGeneratorFunction_ = function(value) { + return j$.isA_('GeneratorFunction', value); + }; + + j$.isTypedArray_ = function(value) { + return ( + j$.isA_('Float32Array', value) || + j$.isA_('Float64Array', value) || + j$.isA_('Int16Array', value) || + j$.isA_('Int32Array', value) || + j$.isA_('Int8Array', value) || + j$.isA_('Uint16Array', value) || + j$.isA_('Uint32Array', value) || + j$.isA_('Uint8Array', value) || + j$.isA_('Uint8ClampedArray', value) + ); + }; + + j$.isA_ = function(typeName, value) { + return j$.getType_(value) === '[object ' + typeName + ']'; + }; + + j$.isError_ = function(value) { + if (!value) { + return false; + } + + if (value instanceof Error) { + return true; + } + if ( + typeof window !== 'undefined' && + typeof window.trustedTypes !== 'undefined' + ) { + return ( + typeof value.stack === 'string' && typeof value.message === 'string' + ); + } + if (value && value.constructor && value.constructor.constructor) { + var valueGlobal = value.constructor.constructor('return this'); + if (j$.isFunction_(valueGlobal)) { + valueGlobal = valueGlobal(); + } + + if (valueGlobal.Error && value instanceof valueGlobal.Error) { + return true; + } + } + return false; + }; + + j$.isAsymmetricEqualityTester_ = function(obj) { + return obj ? j$.isA_('Function', obj.asymmetricMatch) : false; + }; + + j$.getType_ = function(value) { + return Object.prototype.toString.apply(value); + }; + + j$.isDomNode = function(obj) { + // Node is a function, because constructors + return typeof jasmineGlobal.Node !== 'undefined' + ? obj instanceof jasmineGlobal.Node + : obj !== null && + typeof obj === 'object' && + typeof obj.nodeType === 'number' && + typeof obj.nodeName === 'string'; + // return obj.nodeType > 0; + }; + + j$.isMap = function(obj) { + return ( + obj !== null && + typeof obj !== 'undefined' && + typeof jasmineGlobal.Map !== 'undefined' && + obj.constructor === jasmineGlobal.Map + ); + }; + + j$.isSet = function(obj) { + return ( + obj !== null && + typeof obj !== 'undefined' && + typeof jasmineGlobal.Set !== 'undefined' && + obj.constructor === jasmineGlobal.Set + ); + }; + + j$.isWeakMap = function(obj) { + return ( + obj !== null && + typeof obj !== 'undefined' && + typeof jasmineGlobal.WeakMap !== 'undefined' && + obj.constructor === jasmineGlobal.WeakMap + ); + }; + + j$.isURL = function(obj) { + return ( + obj !== null && + typeof obj !== 'undefined' && + typeof jasmineGlobal.URL !== 'undefined' && + obj.constructor === jasmineGlobal.URL + ); + }; + + j$.isDataView = function(obj) { + return ( + obj !== null && + typeof obj !== 'undefined' && + typeof jasmineGlobal.DataView !== 'undefined' && + obj.constructor === jasmineGlobal.DataView + ); + }; + + j$.isPromise = function(obj) { + return ( + typeof jasmineGlobal.Promise !== 'undefined' && + !!obj && + obj.constructor === jasmineGlobal.Promise + ); + }; + + j$.isPromiseLike = function(obj) { + return !!obj && j$.isFunction_(obj.then); + }; + + j$.fnNameFor = function(func) { + if (func.name) { + return func.name; + } + + var matches = + func.toString().match(/^\s*function\s*(\w+)\s*\(/) || + func.toString().match(/^\s*\[object\s*(\w+)Constructor\]/); + + return matches ? matches[1] : ''; + }; + + j$.isPending_ = function(promise) { + var sentinel = {}; + // eslint-disable-next-line compat/compat + return Promise.race([promise, Promise.resolve(sentinel)]).then( + function(result) { + return result === sentinel; + }, + function() { + return false; + } + ); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is an instance of the specified class/constructor. + * @name jasmine.any + * @since 1.3.0 + * @function + * @param {Constructor} clazz - The constructor to check against. + */ + j$.any = function(clazz) { + return new j$.Any(clazz); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is not `null` and not `undefined`. + * @name jasmine.anything + * @since 2.2.0 + * @function + */ + j$.anything = function() { + return new j$.Anything(); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is `true` or anything truthy. + * @name jasmine.truthy + * @since 3.1.0 + * @function + */ + j$.truthy = function() { + return new j$.Truthy(); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is `null`, `undefined`, `0`, `false` or anything falsey. + * @name jasmine.falsy + * @since 3.1.0 + * @function + */ + j$.falsy = function() { + return new j$.Falsy(); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is empty. + * @name jasmine.empty + * @since 3.1.0 + * @function + */ + j$.empty = function() { + return new j$.Empty(); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared is not empty. + * @name jasmine.notEmpty + * @since 3.1.0 + * @function + */ + j$.notEmpty = function() { + return new j$.NotEmpty(); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value being compared contains at least the keys and values. + * @name jasmine.objectContaining + * @since 1.3.0 + * @function + * @param {Object} sample - The subset of properties that _must_ be in the actual. + */ + j$.objectContaining = function(sample) { + return new j$.ObjectContaining(sample); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value is a `String` that matches the `RegExp` or `String`. + * @name jasmine.stringMatching + * @since 2.2.0 + * @function + * @param {RegExp|String} expected + */ + j$.stringMatching = function(expected) { + return new j$.StringMatching(expected); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value is an `Array` that contains at least the elements in the sample. + * @name jasmine.arrayContaining + * @since 2.2.0 + * @function + * @param {Array} sample + */ + j$.arrayContaining = function(sample) { + return new j$.ArrayContaining(sample); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if the actual value is an `Array` that contains all of the elements in the sample in any order. + * @name jasmine.arrayWithExactContents + * @since 2.8.0 + * @function + * @param {Array} sample + */ + j$.arrayWithExactContents = function(sample) { + return new j$.ArrayWithExactContents(sample); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if every key/value pair in the sample passes the deep equality comparison + * with at least one key/value pair in the actual value being compared + * @name jasmine.mapContaining + * @since 3.5.0 + * @function + * @param {Map} sample - The subset of items that _must_ be in the actual. + */ + j$.mapContaining = function(sample) { + return new j$.MapContaining(sample); + }; + + /** + * Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}), + * that will succeed if every item in the sample passes the deep equality comparison + * with at least one item in the actual value being compared + * @name jasmine.setContaining + * @since 3.5.0 + * @function + * @param {Set} sample - The subset of items that _must_ be in the actual. + */ + j$.setContaining = function(sample) { + return new j$.SetContaining(sample); + }; + + /** + * Determines whether the provided function is a Jasmine spy. + * @name jasmine.isSpy + * @since 2.0.0 + * @function + * @param {Function} putativeSpy - The function to check. + * @return {Boolean} + */ + j$.isSpy = function(putativeSpy) { + if (!putativeSpy) { + return false; + } + return ( + putativeSpy.and instanceof j$.SpyStrategy && + putativeSpy.calls instanceof j$.CallTracker + ); + }; +}; + +getJasmineRequireObj().util = function(j$) { + var util = {}; + + util.inherit = function(childClass, parentClass) { + var Subclass = function() {}; + Subclass.prototype = parentClass.prototype; + childClass.prototype = new Subclass(); + }; + + util.argsToArray = function(args) { + var arrayOfArgs = []; + for (var i = 0; i < args.length; i++) { + arrayOfArgs.push(args[i]); + } + return arrayOfArgs; + }; + + util.isUndefined = function(obj) { + return obj === void 0; + }; + + util.arrayContains = function(array, search) { + var i = array.length; + while (i--) { + if (array[i] === search) { + return true; + } + } + return false; + }; + + util.clone = function(obj) { + if (Object.prototype.toString.apply(obj) === '[object Array]') { + return obj.slice(); + } + + var cloned = {}; + for (var prop in obj) { + if (obj.hasOwnProperty(prop)) { + cloned[prop] = obj[prop]; + } + } + + return cloned; + }; + + util.cloneArgs = function(args) { + var clonedArgs = []; + var argsAsArray = j$.util.argsToArray(args); + for (var i = 0; i < argsAsArray.length; i++) { + var str = Object.prototype.toString.apply(argsAsArray[i]), + primitives = /^\[object (Boolean|String|RegExp|Number)/; + + // All falsey values are either primitives, `null`, or `undefined. + if (!argsAsArray[i] || str.match(primitives)) { + clonedArgs.push(argsAsArray[i]); + } else { + clonedArgs.push(j$.util.clone(argsAsArray[i])); + } + } + return clonedArgs; + }; + + util.getPropertyDescriptor = function(obj, methodName) { + var descriptor, + proto = obj; + + do { + descriptor = Object.getOwnPropertyDescriptor(proto, methodName); + proto = Object.getPrototypeOf(proto); + } while (!descriptor && proto); + + return descriptor; + }; + + util.objectDifference = function(obj, toRemove) { + var diff = {}; + + for (var key in obj) { + if (util.has(obj, key) && !util.has(toRemove, key)) { + diff[key] = obj[key]; + } + } + + return diff; + }; + + util.has = function(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); + }; + + util.errorWithStack = function errorWithStack() { + // Don't throw and catch if we don't have to, because it makes it harder + // for users to debug their code with exception breakpoints. + var error = new Error(); + + if (error.stack) { + return error; + } + + // But some browsers (e.g. Phantom) only provide a stack trace if we throw. + try { + throw new Error(); + } catch (e) { + return e; + } + }; + + function callerFile() { + var trace = new j$.StackTrace(util.errorWithStack()); + return trace.frames[2].file; + } + + util.jasmineFile = (function() { + var result; + + return function() { + if (!result) { + result = callerFile(); + } + + return result; + }; + })(); + + function StopIteration() {} + StopIteration.prototype = Object.create(Error.prototype); + StopIteration.prototype.constructor = StopIteration; + + // useful for maps and sets since `forEach` is the only IE11-compatible way to iterate them + util.forEachBreakable = function(iterable, iteratee) { + function breakLoop() { + throw new StopIteration(); + } + + try { + iterable.forEach(function(value, key) { + iteratee(breakLoop, value, key, iterable); + }); + } catch (error) { + if (!(error instanceof StopIteration)) throw error; + } + }; + + return util; +}; + +getJasmineRequireObj().Spec = function(j$) { + /** + * @interface Spec + * @see Configuration#specFilter + */ + function Spec(attrs) { + this.expectationFactory = attrs.expectationFactory; + this.asyncExpectationFactory = attrs.asyncExpectationFactory; + this.resultCallback = attrs.resultCallback || function() {}; + /** + * The unique ID of this spec. + * @name Spec#id + * @readonly + * @type {string} + */ + this.id = attrs.id; + /** + * The description passed to the {@link it} that created this spec. + * @name Spec#description + * @readonly + * @type {string} + */ + this.description = attrs.description || ''; + this.queueableFn = attrs.queueableFn; + this.beforeAndAfterFns = + attrs.beforeAndAfterFns || + function() { + return { befores: [], afters: [] }; + }; + this.userContext = + attrs.userContext || + function() { + return {}; + }; + this.onStart = attrs.onStart || function() {}; + this.getSpecName = + attrs.getSpecName || + function() { + return ''; + }; + this.expectationResultFactory = + attrs.expectationResultFactory || function() {}; + this.queueRunnerFactory = attrs.queueRunnerFactory || function() {}; + this.catchingExceptions = + attrs.catchingExceptions || + function() { + return true; + }; + this.throwOnExpectationFailure = !!attrs.throwOnExpectationFailure; + this.timer = attrs.timer || new j$.Timer(); + + if (!this.queueableFn.fn) { + this.pend(); + } + + /** + * @typedef SpecResult + * @property {Int} id - The unique id of this spec. + * @property {String} description - The description passed to the {@link it} that created this spec. + * @property {String} fullName - The full description including all ancestors of this spec. + * @property {Expectation[]} failedExpectations - The list of expectations that failed during execution of this spec. + * @property {Expectation[]} passedExpectations - The list of expectations that passed during execution of this spec. + * @property {Expectation[]} deprecationWarnings - The list of deprecation warnings that occurred during execution this spec. + * @property {String} pendingReason - If the spec is {@link pending}, this will be the reason. + * @property {String} status - Once the spec has completed, this string represents the pass/fail status of this spec. + * @property {number} duration - The time in ms used by the spec execution, including any before/afterEach. + * @property {Object} properties - User-supplied properties, if any, that were set using {@link Env#setSpecProperty} + */ + this.result = { + id: this.id, + description: this.description, + fullName: this.getFullName(), + failedExpectations: [], + passedExpectations: [], + deprecationWarnings: [], + pendingReason: '', + duration: null, + properties: null + }; + } + + Spec.prototype.addExpectationResult = function(passed, data, isError) { + var expectationResult = this.expectationResultFactory(data); + if (passed) { + this.result.passedExpectations.push(expectationResult); + } else { + this.result.failedExpectations.push(expectationResult); + + if (this.throwOnExpectationFailure && !isError) { + throw new j$.errors.ExpectationFailed(); + } + } + }; + + Spec.prototype.setSpecProperty = function(key, value) { + this.result.properties = this.result.properties || {}; + this.result.properties[key] = value; + }; + + Spec.prototype.expect = function(actual) { + return this.expectationFactory(actual, this); + }; + + Spec.prototype.expectAsync = function(actual) { + return this.asyncExpectationFactory(actual, this); + }; + + Spec.prototype.execute = function(onComplete, excluded, failSpecWithNoExp) { + var self = this; + + var onStart = { + fn: function(done) { + self.timer.start(); + self.onStart(self, done); + } + }; + + var complete = { + fn: function(done) { + self.queueableFn.fn = null; + self.result.status = self.status(excluded, failSpecWithNoExp); + self.result.duration = self.timer.elapsed(); + self.resultCallback(self.result, done); + } + }; + + var fns = this.beforeAndAfterFns(); + var regularFns = fns.befores.concat(this.queueableFn); + + var runnerConfig = { + isLeaf: true, + queueableFns: regularFns, + cleanupFns: fns.afters, + onException: function() { + self.onException.apply(self, arguments); + }, + onComplete: function() { + onComplete( + self.result.status === 'failed' && + new j$.StopExecutionError('spec failed') + ); + }, + userContext: this.userContext() + }; + + if (this.markedPending || excluded === true) { + runnerConfig.queueableFns = []; + runnerConfig.cleanupFns = []; + } + + runnerConfig.queueableFns.unshift(onStart); + runnerConfig.cleanupFns.push(complete); + + this.queueRunnerFactory(runnerConfig); + }; + + Spec.prototype.onException = function onException(e) { + if (Spec.isPendingSpecException(e)) { + this.pend(extractCustomPendingMessage(e)); + return; + } + + if (e instanceof j$.errors.ExpectationFailed) { + return; + } + + this.addExpectationResult( + false, + { + matcherName: '', + passed: false, + expected: '', + actual: '', + error: e + }, + true + ); + }; + + Spec.prototype.pend = function(message) { + this.markedPending = true; + if (message) { + this.result.pendingReason = message; + } + }; + + Spec.prototype.getResult = function() { + this.result.status = this.status(); + return this.result; + }; + + Spec.prototype.status = function(excluded, failSpecWithNoExpectations) { + if (excluded === true) { + return 'excluded'; + } + + if (this.markedPending) { + return 'pending'; + } + + if ( + this.result.failedExpectations.length > 0 || + (failSpecWithNoExpectations && + this.result.failedExpectations.length + + this.result.passedExpectations.length === + 0) + ) { + return 'failed'; + } + + return 'passed'; + }; + + /** + * The full description including all ancestors of this spec. + * @name Spec#getFullName + * @function + * @returns {string} + */ + Spec.prototype.getFullName = function() { + return this.getSpecName(this); + }; + + Spec.prototype.addDeprecationWarning = function(deprecation) { + if (typeof deprecation === 'string') { + deprecation = { message: deprecation }; + } + this.result.deprecationWarnings.push( + this.expectationResultFactory(deprecation) + ); + }; + + var extractCustomPendingMessage = function(e) { + var fullMessage = e.toString(), + boilerplateStart = fullMessage.indexOf(Spec.pendingSpecExceptionMessage), + boilerplateEnd = + boilerplateStart + Spec.pendingSpecExceptionMessage.length; + + return fullMessage.substr(boilerplateEnd); + }; + + Spec.pendingSpecExceptionMessage = '=> marked Pending'; + + Spec.isPendingSpecException = function(e) { + return !!( + e && + e.toString && + e.toString().indexOf(Spec.pendingSpecExceptionMessage) !== -1 + ); + }; + + return Spec; +}; + +if (typeof window == void 0 && typeof exports == 'object') { + /* globals exports */ + exports.Spec = jasmineRequire.Spec; +} + +/*jshint bitwise: false*/ + +getJasmineRequireObj().Order = function() { + function Order(options) { + this.random = 'random' in options ? options.random : true; + var seed = (this.seed = options.seed || generateSeed()); + this.sort = this.random ? randomOrder : naturalOrder; + + function naturalOrder(items) { + return items; + } + + function randomOrder(items) { + var copy = items.slice(); + copy.sort(function(a, b) { + return jenkinsHash(seed + a.id) - jenkinsHash(seed + b.id); + }); + return copy; + } + + function generateSeed() { + return String(Math.random()).slice(-5); + } + + // Bob Jenkins One-at-a-Time Hash algorithm is a non-cryptographic hash function + // used to get a different output when the key changes slightly. + // We use your return to sort the children randomly in a consistent way when + // used in conjunction with a seed + + function jenkinsHash(key) { + var hash, i; + for (hash = i = 0; i < key.length; ++i) { + hash += key.charCodeAt(i); + hash += hash << 10; + hash ^= hash >> 6; + } + hash += hash << 3; + hash ^= hash >> 11; + hash += hash << 15; + return hash; + } + } + + return Order; +}; + +getJasmineRequireObj().Env = function(j$) { + /** + * @class Env + * @since 2.0.0 + * @classdesc The Jasmine environment.
+ * _Note:_ Do not construct this directly. You can obtain the Env instance by + * calling {@link jasmine.getEnv}. + * @hideconstructor + */ + function Env(options) { + options = options || {}; + + var self = this; + var global = options.global || j$.getGlobal(); + var customPromise; + + var totalSpecsDefined = 0; + + var realSetTimeout = global.setTimeout; + var realClearTimeout = global.clearTimeout; + var clearStack = j$.getClearStack(global); + this.clock = new j$.Clock( + global, + function() { + return new j$.DelayedFunctionScheduler(); + }, + new j$.MockDate(global) + ); + + var runnableResources = {}; + + var currentSpec = null; + var currentlyExecutingSuites = []; + var currentDeclarationSuite = null; + var hasFailures = false; + + /** + * This represents the available options to configure Jasmine. + * Options that are not provided will use their default values. + * @see Env#configure + * @interface Configuration + * @since 3.3.0 + */ + var config = { + /** + * Whether to randomize spec execution order + * @name Configuration#random + * @since 3.3.0 + * @type Boolean + * @default true + */ + random: true, + /** + * Seed to use as the basis of randomization. + * Null causes the seed to be determined randomly at the start of execution. + * @name Configuration#seed + * @since 3.3.0 + * @type (number|string) + * @default null + */ + seed: null, + /** + * Whether to stop execution of the suite after the first spec failure + * @name Configuration#failFast + * @since 3.3.0 + * @type Boolean + * @default false + * @deprecated Use the `stopOnSpecFailure` config property instead. + */ + failFast: false, + /** + * Whether to stop execution of the suite after the first spec failure + * @name Configuration#stopOnSpecFailure + * @since 3.9.0 + * @type Boolean + * @default false + */ + stopOnSpecFailure: false, + /** + * Whether to fail the spec if it ran no expectations. By default + * a spec that ran no expectations is reported as passed. Setting this + * to true will report such spec as a failure. + * @name Configuration#failSpecWithNoExpectations + * @since 3.5.0 + * @type Boolean + * @default false + */ + failSpecWithNoExpectations: false, + /** + * Whether to cause specs to only have one expectation failure. + * @name Configuration#oneFailurePerSpec + * @since 3.3.0 + * @type Boolean + * @default false + * @deprecated Use the `stopSpecOnExpectationFailure` config property instead. + */ + oneFailurePerSpec: false, + /** + * Whether to cause specs to only have one expectation failure. + * @name Configuration#stopSpecOnExpectationFailure + * @since 3.3.0 + * @type Boolean + * @default false + */ + stopSpecOnExpectationFailure: false, + /** + * A function that takes a spec and returns true if it should be executed + * or false if it should be skipped. + * @callback SpecFilter + * @param {Spec} spec - The spec that the filter is being applied to. + * @return boolean + */ + /** + * Function to use to filter specs + * @name Configuration#specFilter + * @since 3.3.0 + * @type SpecFilter + * @default A function that always returns true. + */ + specFilter: function() { + return true; + }, + /** + * Whether or not reporters should hide disabled specs from their output. + * Currently only supported by Jasmine's HTMLReporter + * @name Configuration#hideDisabled + * @since 3.3.0 + * @type Boolean + * @default false + */ + hideDisabled: false, + /** + * Set to provide a custom promise library that Jasmine will use if it needs + * to create a promise. If not set, it will default to whatever global Promise + * library is available (if any). + * @name Configuration#Promise + * @since 3.5.0 + * @type function + * @default undefined + */ + Promise: undefined + }; + + var currentSuite = function() { + return currentlyExecutingSuites[currentlyExecutingSuites.length - 1]; + }; + + var currentRunnable = function() { + return currentSpec || currentSuite(); + }; + + var globalErrors = null; + + var installGlobalErrors = function() { + if (globalErrors) { + return; + } + + globalErrors = new j$.GlobalErrors(); + globalErrors.install(); + }; + + if (!options.suppressLoadErrors) { + installGlobalErrors(); + globalErrors.pushListener(function( + message, + filename, + lineno, + colNo, + err + ) { + topSuite.result.failedExpectations.push({ + passed: false, + globalErrorType: 'load', + message: message, + stack: err && err.stack, + filename: filename, + lineno: lineno + }); + }); + } + + /** + * Configure your jasmine environment + * @name Env#configure + * @since 3.3.0 + * @argument {Configuration} configuration + * @function + */ + this.configure = function(configuration) { + var booleanProps = [ + 'random', + 'failSpecWithNoExpectations', + 'hideDisabled' + ]; + + booleanProps.forEach(function(prop) { + if (typeof configuration[prop] !== 'undefined') { + config[prop] = !!configuration[prop]; + } + }); + + if (typeof configuration.failFast !== 'undefined') { + if (typeof configuration.stopOnSpecFailure !== 'undefined') { + if (configuration.stopOnSpecFailure !== configuration.failFast) { + throw new Error( + 'stopOnSpecFailure and failFast are aliases for ' + + "each other. Don't set failFast if you also set stopOnSpecFailure." + ); + } + } + + config.failFast = configuration.failFast; + config.stopOnSpecFailure = configuration.failFast; + } else if (typeof configuration.stopOnSpecFailure !== 'undefined') { + config.failFast = configuration.stopOnSpecFailure; + config.stopOnSpecFailure = configuration.stopOnSpecFailure; + } + + if (typeof configuration.oneFailurePerSpec !== 'undefined') { + if (typeof configuration.stopSpecOnExpectationFailure !== 'undefined') { + if ( + configuration.stopSpecOnExpectationFailure !== + configuration.oneFailurePerSpec + ) { + throw new Error( + 'stopSpecOnExpectationFailure and oneFailurePerSpec are aliases for ' + + "each other. Don't set oneFailurePerSpec if you also set stopSpecOnExpectationFailure." + ); + } + } + + config.oneFailurePerSpec = configuration.oneFailurePerSpec; + config.stopSpecOnExpectationFailure = configuration.oneFailurePerSpec; + } else if ( + typeof configuration.stopSpecOnExpectationFailure !== 'undefined' + ) { + config.oneFailurePerSpec = configuration.stopSpecOnExpectationFailure; + config.stopSpecOnExpectationFailure = + configuration.stopSpecOnExpectationFailure; + } + + if (configuration.specFilter) { + config.specFilter = configuration.specFilter; + } + + if (typeof configuration.seed !== 'undefined') { + config.seed = configuration.seed; + } + + // Don't use hasOwnProperty to check for Promise existence because Promise + // can be initialized to undefined, either explicitly or by using the + // object returned from Env#configuration. In particular, Karma does this. + if (configuration.Promise) { + if ( + typeof configuration.Promise.resolve === 'function' && + typeof configuration.Promise.reject === 'function' + ) { + customPromise = configuration.Promise; + } else { + throw new Error( + 'Custom promise library missing `resolve`/`reject` functions' + ); + } + } + }; + + /** + * Get the current configuration for your jasmine environment + * @name Env#configuration + * @since 3.3.0 + * @function + * @returns {Configuration} + */ + this.configuration = function() { + var result = {}; + for (var property in config) { + result[property] = config[property]; + } + return result; + }; + + Object.defineProperty(this, 'specFilter', { + get: function() { + self.deprecated( + 'Getting specFilter directly from Env is deprecated and will be removed in a future version of Jasmine, please check the specFilter option from `configuration`' + ); + return config.specFilter; + }, + set: function(val) { + self.deprecated( + 'Setting specFilter directly on Env is deprecated and will be removed in a future version of Jasmine, please use the specFilter option in `configure`' + ); + config.specFilter = val; + } + }); + + this.setDefaultSpyStrategy = function(defaultStrategyFn) { + if (!currentRunnable()) { + throw new Error( + 'Default spy strategy must be set in a before function or a spec' + ); + } + runnableResources[ + currentRunnable().id + ].defaultStrategyFn = defaultStrategyFn; + }; + + this.addSpyStrategy = function(name, fn) { + if (!currentRunnable()) { + throw new Error( + 'Custom spy strategies must be added in a before function or a spec' + ); + } + runnableResources[currentRunnable().id].customSpyStrategies[name] = fn; + }; + + this.addCustomEqualityTester = function(tester) { + if (!currentRunnable()) { + throw new Error( + 'Custom Equalities must be added in a before function or a spec' + ); + } + runnableResources[currentRunnable().id].customEqualityTesters.push( + tester + ); + }; + + this.addMatchers = function(matchersToAdd) { + if (!currentRunnable()) { + throw new Error( + 'Matchers must be added in a before function or a spec' + ); + } + var customMatchers = + runnableResources[currentRunnable().id].customMatchers; + + for (var matcherName in matchersToAdd) { + customMatchers[matcherName] = matchersToAdd[matcherName]; + } + }; + + this.addAsyncMatchers = function(matchersToAdd) { + if (!currentRunnable()) { + throw new Error( + 'Async Matchers must be added in a before function or a spec' + ); + } + var customAsyncMatchers = + runnableResources[currentRunnable().id].customAsyncMatchers; + + for (var matcherName in matchersToAdd) { + customAsyncMatchers[matcherName] = matchersToAdd[matcherName]; + } + }; + + this.addCustomObjectFormatter = function(formatter) { + if (!currentRunnable()) { + throw new Error( + 'Custom object formatters must be added in a before function or a spec' + ); + } + + runnableResources[currentRunnable().id].customObjectFormatters.push( + formatter + ); + }; + + j$.Expectation.addCoreMatchers(j$.matchers); + j$.Expectation.addAsyncCoreMatchers(j$.asyncMatchers); + + var nextSpecId = 0; + var getNextSpecId = function() { + return 'spec' + nextSpecId++; + }; + + var nextSuiteId = 0; + var getNextSuiteId = function() { + return 'suite' + nextSuiteId++; + }; + + var makePrettyPrinter = function() { + var customObjectFormatters = + runnableResources[currentRunnable().id].customObjectFormatters; + return j$.makePrettyPrinter(customObjectFormatters); + }; + + var makeMatchersUtil = function() { + var customEqualityTesters = + runnableResources[currentRunnable().id].customEqualityTesters; + return new j$.MatchersUtil({ + customTesters: customEqualityTesters, + pp: makePrettyPrinter() + }); + }; + + var expectationFactory = function(actual, spec) { + var customEqualityTesters = + runnableResources[spec.id].customEqualityTesters; + + return j$.Expectation.factory({ + matchersUtil: makeMatchersUtil(), + customEqualityTesters: customEqualityTesters, + customMatchers: runnableResources[spec.id].customMatchers, + actual: actual, + addExpectationResult: addExpectationResult + }); + + function addExpectationResult(passed, result) { + return spec.addExpectationResult(passed, result); + } + }; + + function recordLateExpectation(runable, runableType, result) { + var delayedExpectationResult = {}; + Object.keys(result).forEach(function(k) { + delayedExpectationResult[k] = result[k]; + }); + delayedExpectationResult.passed = false; + delayedExpectationResult.globalErrorType = 'lateExpectation'; + delayedExpectationResult.message = + runableType + + ' "' + + runable.getFullName() + + '" ran a "' + + result.matcherName + + '" expectation after it finished.\n'; + + if (result.message) { + delayedExpectationResult.message += + 'Message: "' + result.message + '"\n'; + } + + delayedExpectationResult.message += + 'Did you forget to return or await the result of expectAsync?'; + + topSuite.result.failedExpectations.push(delayedExpectationResult); + } + + var asyncExpectationFactory = function(actual, spec, runableType) { + return j$.Expectation.asyncFactory({ + matchersUtil: makeMatchersUtil(), + customEqualityTesters: runnableResources[spec.id].customEqualityTesters, + customAsyncMatchers: runnableResources[spec.id].customAsyncMatchers, + actual: actual, + addExpectationResult: addExpectationResult + }); + + function addExpectationResult(passed, result) { + if (currentRunnable() !== spec) { + recordLateExpectation(spec, runableType, result); + } + return spec.addExpectationResult(passed, result); + } + }; + var suiteAsyncExpectationFactory = function(actual, suite) { + return asyncExpectationFactory(actual, suite, 'Suite'); + }; + + var specAsyncExpectationFactory = function(actual, suite) { + return asyncExpectationFactory(actual, suite, 'Spec'); + }; + + var defaultResourcesForRunnable = function(id, parentRunnableId) { + var resources = { + spies: [], + customEqualityTesters: [], + customMatchers: {}, + customAsyncMatchers: {}, + customSpyStrategies: {}, + defaultStrategyFn: undefined, + customObjectFormatters: [] + }; + + if (runnableResources[parentRunnableId]) { + resources.customEqualityTesters = j$.util.clone( + runnableResources[parentRunnableId].customEqualityTesters + ); + resources.customMatchers = j$.util.clone( + runnableResources[parentRunnableId].customMatchers + ); + resources.customAsyncMatchers = j$.util.clone( + runnableResources[parentRunnableId].customAsyncMatchers + ); + resources.customObjectFormatters = j$.util.clone( + runnableResources[parentRunnableId].customObjectFormatters + ); + resources.defaultStrategyFn = + runnableResources[parentRunnableId].defaultStrategyFn; + } + + runnableResources[id] = resources; + }; + + var clearResourcesForRunnable = function(id) { + spyRegistry.clearSpies(); + delete runnableResources[id]; + }; + + var beforeAndAfterFns = function(suite) { + return function() { + var befores = [], + afters = []; + + while (suite) { + befores = befores.concat(suite.beforeFns); + afters = afters.concat(suite.afterFns); + + suite = suite.parentSuite; + } + + return { + befores: befores.reverse(), + afters: afters + }; + }; + }; + + var getSpecName = function(spec, suite) { + var fullName = [spec.description], + suiteFullName = suite.getFullName(); + + if (suiteFullName !== '') { + fullName.unshift(suiteFullName); + } + return fullName.join(' '); + }; + + // TODO: we may just be able to pass in the fn instead of wrapping here + var buildExpectationResult = j$.buildExpectationResult, + exceptionFormatter = new j$.ExceptionFormatter(), + expectationResultFactory = function(attrs) { + attrs.messageFormatter = exceptionFormatter.message; + attrs.stackFormatter = exceptionFormatter.stack; + + return buildExpectationResult(attrs); + }; + + /** + * Sets whether Jasmine should throw an Error when an expectation fails. + * This causes a spec to only have one expectation failure. + * @name Env#throwOnExpectationFailure + * @since 2.3.0 + * @function + * @param {Boolean} value Whether to throw when a expectation fails + * @deprecated Use the `stopSpecOnExpectationFailure` option with {@link Env#configure} + */ + this.throwOnExpectationFailure = function(value) { + this.deprecated( + 'Setting throwOnExpectationFailure directly on Env is deprecated and ' + + 'will be removed in a future version of Jasmine. Please use the ' + + 'stopSpecOnExpectationFailure option in `configure`.' + ); + this.configure({ oneFailurePerSpec: !!value }); + }; + + this.throwingExpectationFailures = function() { + this.deprecated( + 'Getting throwingExpectationFailures directly from Env is deprecated ' + + 'and will be removed in a future version of Jasmine. Please check ' + + 'the stopSpecOnExpectationFailure option from `configuration`.' + ); + return config.oneFailurePerSpec; + }; + + /** + * Set whether to stop suite execution when a spec fails + * @name Env#stopOnSpecFailure + * @since 2.7.0 + * @function + * @param {Boolean} value Whether to stop suite execution when a spec fails + * @deprecated Use the `stopOnSpecFailure` option with {@link Env#configure} + */ + this.stopOnSpecFailure = function(value) { + this.deprecated( + 'Setting stopOnSpecFailure directly is deprecated and will be ' + + 'removed in a future version of Jasmine. Please use the ' + + 'stopOnSpecFailure option in `configure`.' + ); + this.configure({ stopOnSpecFailure: !!value }); + }; + + this.stoppingOnSpecFailure = function() { + this.deprecated( + 'Getting stoppingOnSpecFailure directly from Env is deprecated and ' + + 'will be removed in a future version of Jasmine. Please check the ' + + 'stopOnSpecFailure option from `configuration`.' + ); + return config.failFast; + }; + + /** + * Set whether to randomize test execution order + * @name Env#randomizeTests + * @since 2.4.0 + * @function + * @param {Boolean} value Whether to randomize execution order + * @deprecated Use the `random` option with {@link Env#configure} + */ + this.randomizeTests = function(value) { + this.deprecated( + 'Setting randomizeTests directly is deprecated and will be removed in a future version of Jasmine, please use the random option in `configure`' + ); + config.random = !!value; + }; + + this.randomTests = function() { + this.deprecated( + 'Getting randomTests directly from Env is deprecated and will be removed in a future version of Jasmine, please check the random option from `configuration`' + ); + return config.random; + }; + + /** + * Set the random number seed for spec randomization + * @name Env#seed + * @since 2.4.0 + * @function + * @param {Number} value The seed value + * @deprecated Use the `seed` option with {@link Env#configure} + */ + this.seed = function(value) { + this.deprecated( + 'Setting seed directly is deprecated and will be removed in a future version of Jasmine, please use the seed option in `configure`' + ); + if (value) { + config.seed = value; + } + return config.seed; + }; + + this.hidingDisabled = function(value) { + this.deprecated( + 'Getting hidingDisabled directly from Env is deprecated and will be removed in a future version of Jasmine, please check the hideDisabled option from `configuration`' + ); + return config.hideDisabled; + }; + + /** + * @name Env#hideDisabled + * @since 3.2.0 + * @function + * @deprecated Use the `hideDisabled` option with {@link Env#configure} + */ + this.hideDisabled = function(value) { + this.deprecated( + 'Setting hideDisabled directly is deprecated and will be removed in a future version of Jasmine, please use the hideDisabled option in `configure`' + ); + config.hideDisabled = !!value; + }; + + this.deprecated = function(deprecation) { + var runnable = currentRunnable() || topSuite; + var context; + + if (runnable === topSuite) { + context = ''; + } else if (runnable === currentSuite()) { + context = ' (in suite: ' + runnable.getFullName() + ')'; + } else { + context = ' (in spec: ' + runnable.getFullName() + ')'; + } + + runnable.addDeprecationWarning(deprecation); + if ( + typeof console !== 'undefined' && + typeof console.error === 'function' + ) { + console.error('DEPRECATION: ' + deprecation + context); + } + }; + + var queueRunnerFactory = function(options, args) { + var failFast = false; + if (options.isLeaf) { + failFast = config.stopSpecOnExpectationFailure; + } else if (!options.isReporter) { + failFast = config.stopOnSpecFailure; + } + options.clearStack = options.clearStack || clearStack; + options.timeout = { + setTimeout: realSetTimeout, + clearTimeout: realClearTimeout + }; + options.fail = self.fail; + options.globalErrors = globalErrors; + options.completeOnFirstError = failFast; + options.onException = + options.onException || + function(e) { + (currentRunnable() || topSuite).onException(e); + }; + options.deprecated = self.deprecated; + + new j$.QueueRunner(options).execute(args); + }; + + var topSuite = new j$.Suite({ + env: this, + id: getNextSuiteId(), + description: 'Jasmine__TopLevel__Suite', + expectationFactory: expectationFactory, + asyncExpectationFactory: suiteAsyncExpectationFactory, + expectationResultFactory: expectationResultFactory + }); + defaultResourcesForRunnable(topSuite.id); + currentDeclarationSuite = topSuite; + + /** + * Provides the root suite, through which all suites and specs can be + * accessed. + * @function + * @name Env#topSuite + * @return {Suite} the root suite + */ + this.topSuite = function() { + return topSuite; + }; + + /** + * This represents the available reporter callback for an object passed to {@link Env#addReporter}. + * @interface Reporter + * @see custom_reporter + */ + var reporter = new j$.ReportDispatcher( + [ + /** + * `jasmineStarted` is called after all of the specs have been loaded, but just before execution starts. + * @function + * @name Reporter#jasmineStarted + * @param {JasmineStartedInfo} suiteInfo Information about the full Jasmine suite that is being run + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'jasmineStarted', + /** + * When the entire suite has finished execution `jasmineDone` is called + * @function + * @name Reporter#jasmineDone + * @param {JasmineDoneInfo} suiteInfo Information about the full Jasmine suite that just finished running. + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'jasmineDone', + /** + * `suiteStarted` is invoked when a `describe` starts to run + * @function + * @name Reporter#suiteStarted + * @param {SuiteResult} result Information about the individual {@link describe} being run + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'suiteStarted', + /** + * `suiteDone` is invoked when all of the child specs and suites for a given suite have been run + * + * While jasmine doesn't require any specific functions, not defining a `suiteDone` will make it impossible for a reporter to know when a suite has failures in an `afterAll`. + * @function + * @name Reporter#suiteDone + * @param {SuiteResult} result + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'suiteDone', + /** + * `specStarted` is invoked when an `it` starts to run (including associated `beforeEach` functions) + * @function + * @name Reporter#specStarted + * @param {SpecResult} result Information about the individual {@link it} being run + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'specStarted', + /** + * `specDone` is invoked when an `it` and its associated `beforeEach` and `afterEach` functions have been run. + * + * While jasmine doesn't require any specific functions, not defining a `specDone` will make it impossible for a reporter to know when a spec has failed. + * @function + * @name Reporter#specDone + * @param {SpecResult} result + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + * @see async + */ + 'specDone' + ], + queueRunnerFactory + ); + + /** + * Executes the specs. + * + * If called with no parameters or with a falsy value as the first parameter, + * all specs will be executed except those that are excluded by a + * [spec filter]{@link Configuration#specFilter} or other mechanism. If the + * first parameter is a list of spec/suite IDs, only those specs/suites will + * be run. + * + * Both parameters are optional, but a completion callback is only valid as + * the second parameter. To specify a completion callback but not a list of + * specs/suites to run, pass null or undefined as the first parameter. + * + * execute should not be called more than once. + * + * If the environment supports promises, execute will return a promise that + * is resolved after the suite finishes executing. The promise will be + * resolved (not rejected) as long as the suite runs to completion. Use a + * {@link Reporter} to determine whether or not the suite passed. + * + * @name Env#execute + * @since 2.0.0 + * @function + * @param {(string[])=} runnablesToRun IDs of suites and/or specs to run + * @param {Function=} onComplete Function that will be called after all specs have run + * @return {Promise} + */ + this.execute = function(runnablesToRun, onComplete) { + installGlobalErrors(); + + if (!runnablesToRun) { + if (focusedRunnables.length) { + runnablesToRun = focusedRunnables; + } else { + runnablesToRun = [topSuite.id]; + } + } + + var order = new j$.Order({ + random: config.random, + seed: config.seed + }); + + var processor = new j$.TreeProcessor({ + tree: topSuite, + runnableIds: runnablesToRun, + queueRunnerFactory: queueRunnerFactory, + failSpecWithNoExpectations: config.failSpecWithNoExpectations, + nodeStart: function(suite, next) { + currentlyExecutingSuites.push(suite); + defaultResourcesForRunnable(suite.id, suite.parentSuite.id); + reporter.suiteStarted(suite.result, next); + suite.startTimer(); + }, + nodeComplete: function(suite, result, next) { + if (suite !== currentSuite()) { + throw new Error('Tried to complete the wrong suite'); + } + + clearResourcesForRunnable(suite.id); + currentlyExecutingSuites.pop(); + + if (result.status === 'failed') { + hasFailures = true; + } + suite.endTimer(); + reporter.suiteDone(result, next); + }, + orderChildren: function(node) { + return order.sort(node.children); + }, + excludeNode: function(spec) { + return !config.specFilter(spec); + } + }); + + if (!processor.processTree().valid) { + throw new Error( + 'Invalid order: would cause a beforeAll or afterAll to be run multiple times' + ); + } + + var jasmineTimer = new j$.Timer(); + jasmineTimer.start(); + + var Promise = customPromise || global.Promise; + + if (Promise) { + return new Promise(function(resolve) { + runAll(function() { + if (onComplete) { + onComplete(); + } + + resolve(); + }); + }); + } else { + runAll(function() { + if (onComplete) { + onComplete(); + } + }); + } + + function runAll(done) { + /** + * Information passed to the {@link Reporter#jasmineStarted} event. + * @typedef JasmineStartedInfo + * @property {Int} totalSpecsDefined - The total number of specs defined in this suite. + * @property {Order} order - Information about the ordering (random or not) of this execution of the suite. + */ + reporter.jasmineStarted( + { + totalSpecsDefined: totalSpecsDefined, + order: order + }, + function() { + currentlyExecutingSuites.push(topSuite); + + processor.execute(function() { + clearResourcesForRunnable(topSuite.id); + currentlyExecutingSuites.pop(); + var overallStatus, incompleteReason; + + if ( + hasFailures || + topSuite.result.failedExpectations.length > 0 + ) { + overallStatus = 'failed'; + } else if (focusedRunnables.length > 0) { + overallStatus = 'incomplete'; + incompleteReason = 'fit() or fdescribe() was found'; + } else if (totalSpecsDefined === 0) { + overallStatus = 'incomplete'; + incompleteReason = 'No specs found'; + } else { + overallStatus = 'passed'; + } + + /** + * Information passed to the {@link Reporter#jasmineDone} event. + * @typedef JasmineDoneInfo + * @property {OverallStatus} overallStatus - The overall result of the suite: 'passed', 'failed', or 'incomplete'. + * @property {Int} totalTime - The total time (in ms) that it took to execute the suite + * @property {IncompleteReason} incompleteReason - Explanation of why the suite was incomplete. + * @property {Order} order - Information about the ordering (random or not) of this execution of the suite. + * @property {Expectation[]} failedExpectations - List of expectations that failed in an {@link afterAll} at the global level. + * @property {Expectation[]} deprecationWarnings - List of deprecation warnings that occurred at the global level. + */ + reporter.jasmineDone( + { + overallStatus: overallStatus, + totalTime: jasmineTimer.elapsed(), + incompleteReason: incompleteReason, + order: order, + failedExpectations: topSuite.result.failedExpectations, + deprecationWarnings: topSuite.result.deprecationWarnings + }, + done + ); + }); + } + ); + } + }; + + /** + * Add a custom reporter to the Jasmine environment. + * @name Env#addReporter + * @since 2.0.0 + * @function + * @param {Reporter} reporterToAdd The reporter to be added. + * @see custom_reporter + */ + this.addReporter = function(reporterToAdd) { + reporter.addReporter(reporterToAdd); + }; + + /** + * Provide a fallback reporter if no other reporters have been specified. + * @name Env#provideFallbackReporter + * @since 2.5.0 + * @function + * @param {Reporter} reporterToAdd The reporter + * @see custom_reporter + */ + this.provideFallbackReporter = function(reporterToAdd) { + reporter.provideFallbackReporter(reporterToAdd); + }; + + /** + * Clear all registered reporters + * @name Env#clearReporters + * @since 2.5.2 + * @function + */ + this.clearReporters = function() { + reporter.clearReporters(); + }; + + var spyFactory = new j$.SpyFactory( + function getCustomStrategies() { + var runnable = currentRunnable(); + + if (runnable) { + return runnableResources[runnable.id].customSpyStrategies; + } + + return {}; + }, + function getDefaultStrategyFn() { + var runnable = currentRunnable(); + + if (runnable) { + return runnableResources[runnable.id].defaultStrategyFn; + } + + return undefined; + }, + function getPromise() { + return customPromise || global.Promise; + } + ); + + var spyRegistry = new j$.SpyRegistry({ + currentSpies: function() { + if (!currentRunnable()) { + throw new Error( + 'Spies must be created in a before function or a spec' + ); + } + return runnableResources[currentRunnable().id].spies; + }, + createSpy: function(name, originalFn) { + return self.createSpy(name, originalFn); + } + }); + + /** + * Configures whether Jasmine should allow the same function to be spied on + * more than once during the execution of a spec. By default, spying on + * a function that is already a spy will cause an error. + * @name Env#allowRespy + * @function + * @since 2.5.0 + * @param {boolean} allow Whether to allow respying + */ + this.allowRespy = function(allow) { + spyRegistry.allowRespy(allow); + }; + + this.spyOn = function() { + return spyRegistry.spyOn.apply(spyRegistry, arguments); + }; + + this.spyOnProperty = function() { + return spyRegistry.spyOnProperty.apply(spyRegistry, arguments); + }; + + this.spyOnAllFunctions = function() { + return spyRegistry.spyOnAllFunctions.apply(spyRegistry, arguments); + }; + + this.createSpy = function(name, originalFn) { + if (arguments.length === 1 && j$.isFunction_(name)) { + originalFn = name; + name = originalFn.name; + } + + return spyFactory.createSpy(name, originalFn); + }; + + this.createSpyObj = function(baseName, methodNames, propertyNames) { + return spyFactory.createSpyObj(baseName, methodNames, propertyNames); + }; + + var ensureIsFunction = function(fn, caller) { + if (!j$.isFunction_(fn)) { + throw new Error( + caller + ' expects a function argument; received ' + j$.getType_(fn) + ); + } + }; + + var ensureIsFunctionOrAsync = function(fn, caller) { + if (!j$.isFunction_(fn) && !j$.isAsyncFunction_(fn)) { + throw new Error( + caller + ' expects a function argument; received ' + j$.getType_(fn) + ); + } + }; + + function ensureIsNotNested(method) { + var runnable = currentRunnable(); + if (runnable !== null && runnable !== undefined) { + throw new Error( + "'" + method + "' should only be used in 'describe' function" + ); + } + } + + var suiteFactory = function(description) { + var suite = new j$.Suite({ + env: self, + id: getNextSuiteId(), + description: description, + parentSuite: currentDeclarationSuite, + timer: new j$.Timer(), + expectationFactory: expectationFactory, + asyncExpectationFactory: suiteAsyncExpectationFactory, + expectationResultFactory: expectationResultFactory, + throwOnExpectationFailure: config.oneFailurePerSpec + }); + + return suite; + }; + + this.describe = function(description, specDefinitions) { + ensureIsNotNested('describe'); + ensureIsFunction(specDefinitions, 'describe'); + var suite = suiteFactory(description); + if (specDefinitions.length > 0) { + throw new Error('describe does not expect any arguments'); + } + if (currentDeclarationSuite.markedPending) { + suite.pend(); + } + addSpecsToSuite(suite, specDefinitions); + return suite; + }; + + this.xdescribe = function(description, specDefinitions) { + ensureIsNotNested('xdescribe'); + ensureIsFunction(specDefinitions, 'xdescribe'); + var suite = suiteFactory(description); + suite.pend(); + addSpecsToSuite(suite, specDefinitions); + return suite; + }; + + var focusedRunnables = []; + + this.fdescribe = function(description, specDefinitions) { + ensureIsNotNested('fdescribe'); + ensureIsFunction(specDefinitions, 'fdescribe'); + var suite = suiteFactory(description); + suite.isFocused = true; + + focusedRunnables.push(suite.id); + unfocusAncestor(); + addSpecsToSuite(suite, specDefinitions); + + return suite; + }; + + function addSpecsToSuite(suite, specDefinitions) { + var parentSuite = currentDeclarationSuite; + parentSuite.addChild(suite); + currentDeclarationSuite = suite; + + var declarationError = null; + try { + specDefinitions.call(suite); + } catch (e) { + declarationError = e; + } + + if (declarationError) { + suite.onException(declarationError); + } + + currentDeclarationSuite = parentSuite; + } + + function findFocusedAncestor(suite) { + while (suite) { + if (suite.isFocused) { + return suite.id; + } + suite = suite.parentSuite; + } + + return null; + } + + function unfocusAncestor() { + var focusedAncestor = findFocusedAncestor(currentDeclarationSuite); + if (focusedAncestor) { + for (var i = 0; i < focusedRunnables.length; i++) { + if (focusedRunnables[i] === focusedAncestor) { + focusedRunnables.splice(i, 1); + break; + } + } + } + } + + var specFactory = function(description, fn, suite, timeout) { + totalSpecsDefined++; + var spec = new j$.Spec({ + id: getNextSpecId(), + beforeAndAfterFns: beforeAndAfterFns(suite), + expectationFactory: expectationFactory, + asyncExpectationFactory: specAsyncExpectationFactory, + resultCallback: specResultCallback, + getSpecName: function(spec) { + return getSpecName(spec, suite); + }, + onStart: specStarted, + description: description, + expectationResultFactory: expectationResultFactory, + queueRunnerFactory: queueRunnerFactory, + userContext: function() { + return suite.clonedSharedUserContext(); + }, + queueableFn: { + fn: fn, + timeout: timeout || 0 + }, + throwOnExpectationFailure: config.oneFailurePerSpec, + timer: new j$.Timer() + }); + return spec; + + function specResultCallback(result, next) { + clearResourcesForRunnable(spec.id); + currentSpec = null; + + if (result.status === 'failed') { + hasFailures = true; + } + + reporter.specDone(result, next); + } + + function specStarted(spec, next) { + currentSpec = spec; + defaultResourcesForRunnable(spec.id, suite.id); + reporter.specStarted(spec.result, next); + } + }; + + this.it = function(description, fn, timeout) { + ensureIsNotNested('it'); + // it() sometimes doesn't have a fn argument, so only check the type if + // it's given. + if (arguments.length > 1 && typeof fn !== 'undefined') { + ensureIsFunctionOrAsync(fn, 'it'); + } + var spec = specFactory(description, fn, currentDeclarationSuite, timeout); + if (currentDeclarationSuite.markedPending) { + spec.pend(); + } + currentDeclarationSuite.addChild(spec); + return spec; + }; + + this.xit = function(description, fn, timeout) { + ensureIsNotNested('xit'); + // xit(), like it(), doesn't always have a fn argument, so only check the + // type when needed. + if (arguments.length > 1 && typeof fn !== 'undefined') { + ensureIsFunctionOrAsync(fn, 'xit'); + } + var spec = this.it.apply(this, arguments); + spec.pend('Temporarily disabled with xit'); + return spec; + }; + + this.fit = function(description, fn, timeout) { + ensureIsNotNested('fit'); + ensureIsFunctionOrAsync(fn, 'fit'); + var spec = specFactory(description, fn, currentDeclarationSuite, timeout); + currentDeclarationSuite.addChild(spec); + focusedRunnables.push(spec.id); + unfocusAncestor(); + return spec; + }; + + /** + * Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SpecResult} + * @name Env#setSpecProperty + * @since 3.6.0 + * @function + * @param {String} key The name of the property + * @param {*} value The value of the property + */ + this.setSpecProperty = function(key, value) { + if (!currentRunnable() || currentRunnable() == currentSuite()) { + throw new Error( + "'setSpecProperty' was used when there was no current spec" + ); + } + currentRunnable().setSpecProperty(key, value); + }; + + /** + * Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SuiteResult} + * @name Env#setSuiteProperty + * @since 3.6.0 + * @function + * @param {String} key The name of the property + * @param {*} value The value of the property + */ + this.setSuiteProperty = function(key, value) { + if (!currentSuite()) { + throw new Error( + "'setSuiteProperty' was used when there was no current suite" + ); + } + currentSuite().setSuiteProperty(key, value); + }; + + this.expect = function(actual) { + if (!currentRunnable()) { + throw new Error( + "'expect' was used when there was no current spec, this could be because an asynchronous test timed out" + ); + } + + return currentRunnable().expect(actual); + }; + + this.expectAsync = function(actual) { + if (!currentRunnable()) { + throw new Error( + "'expectAsync' was used when there was no current spec, this could be because an asynchronous test timed out" + ); + } + + return currentRunnable().expectAsync(actual); + }; + + this.beforeEach = function(beforeEachFunction, timeout) { + ensureIsNotNested('beforeEach'); + ensureIsFunctionOrAsync(beforeEachFunction, 'beforeEach'); + currentDeclarationSuite.beforeEach({ + fn: beforeEachFunction, + timeout: timeout || 0 + }); + }; + + this.beforeAll = function(beforeAllFunction, timeout) { + ensureIsNotNested('beforeAll'); + ensureIsFunctionOrAsync(beforeAllFunction, 'beforeAll'); + currentDeclarationSuite.beforeAll({ + fn: beforeAllFunction, + timeout: timeout || 0 + }); + }; + + this.afterEach = function(afterEachFunction, timeout) { + ensureIsNotNested('afterEach'); + ensureIsFunctionOrAsync(afterEachFunction, 'afterEach'); + afterEachFunction.isCleanup = true; + currentDeclarationSuite.afterEach({ + fn: afterEachFunction, + timeout: timeout || 0 + }); + }; + + this.afterAll = function(afterAllFunction, timeout) { + ensureIsNotNested('afterAll'); + ensureIsFunctionOrAsync(afterAllFunction, 'afterAll'); + currentDeclarationSuite.afterAll({ + fn: afterAllFunction, + timeout: timeout || 0 + }); + }; + + this.pending = function(message) { + var fullMessage = j$.Spec.pendingSpecExceptionMessage; + if (message) { + fullMessage += message; + } + throw fullMessage; + }; + + this.fail = function(error) { + if (!currentRunnable()) { + throw new Error( + "'fail' was used when there was no current spec, this could be because an asynchronous test timed out" + ); + } + + var message = 'Failed'; + if (error) { + message += ': '; + if (error.message) { + message += error.message; + } else if (j$.isString_(error)) { + message += error; + } else { + // pretty print all kind of objects. This includes arrays. + message += makePrettyPrinter()(error); + } + } + + currentRunnable().addExpectationResult(false, { + matcherName: '', + passed: false, + expected: '', + actual: '', + message: message, + error: error && error.message ? error : null + }); + + if (config.oneFailurePerSpec) { + throw new Error(message); + } + }; + + this.cleanup_ = function() { + if (globalErrors) { + globalErrors.uninstall(); + } + }; + } + + return Env; +}; + +getJasmineRequireObj().JsApiReporter = function(j$) { + /** + * @name jsApiReporter + * @classdesc {@link Reporter} added by default in `boot.js` to record results for retrieval in javascript code. An instance is made available as `jsApiReporter` on the global object. + * @class + * @hideconstructor + */ + function JsApiReporter(options) { + var timer = options.timer || new j$.Timer(), + status = 'loaded'; + + this.started = false; + this.finished = false; + this.runDetails = {}; + + this.jasmineStarted = function() { + this.started = true; + status = 'started'; + timer.start(); + }; + + var executionTime; + + this.jasmineDone = function(runDetails) { + this.finished = true; + this.runDetails = runDetails; + executionTime = timer.elapsed(); + status = 'done'; + }; + + /** + * Get the current status for the Jasmine environment. + * @name jsApiReporter#status + * @since 2.0.0 + * @function + * @return {String} - One of `loaded`, `started`, or `done` + */ + this.status = function() { + return status; + }; + + var suites = [], + suites_hash = {}; + + this.suiteStarted = function(result) { + suites_hash[result.id] = result; + }; + + this.suiteDone = function(result) { + storeSuite(result); + }; + + /** + * Get the results for a set of suites. + * + * Retrievable in slices for easier serialization. + * @name jsApiReporter#suiteResults + * @since 2.1.0 + * @function + * @param {Number} index - The position in the suites list to start from. + * @param {Number} length - Maximum number of suite results to return. + * @return {SuiteResult[]} + */ + this.suiteResults = function(index, length) { + return suites.slice(index, index + length); + }; + + function storeSuite(result) { + suites.push(result); + suites_hash[result.id] = result; + } + + /** + * Get all of the suites in a single object, with their `id` as the key. + * @name jsApiReporter#suites + * @since 2.0.0 + * @function + * @return {Object} - Map of suite id to {@link SuiteResult} + */ + this.suites = function() { + return suites_hash; + }; + + var specs = []; + + this.specDone = function(result) { + specs.push(result); + }; + + /** + * Get the results for a set of specs. + * + * Retrievable in slices for easier serialization. + * @name jsApiReporter#specResults + * @since 2.0.0 + * @function + * @param {Number} index - The position in the specs list to start from. + * @param {Number} length - Maximum number of specs results to return. + * @return {SpecResult[]} + */ + this.specResults = function(index, length) { + return specs.slice(index, index + length); + }; + + /** + * Get all spec results. + * @name jsApiReporter#specs + * @since 2.0.0 + * @function + * @return {SpecResult[]} + */ + this.specs = function() { + return specs; + }; + + /** + * Get the number of milliseconds it took for the full Jasmine suite to run. + * @name jsApiReporter#executionTime + * @since 2.0.0 + * @function + * @return {Number} + */ + this.executionTime = function() { + return executionTime; + }; + } + + return JsApiReporter; +}; + +getJasmineRequireObj().Any = function(j$) { + function Any(expectedObject) { + if (typeof expectedObject === 'undefined') { + throw new TypeError( + 'jasmine.any() expects to be passed a constructor function. ' + + 'Please pass one or use jasmine.anything() to match any object.' + ); + } + this.expectedObject = expectedObject; + } + + Any.prototype.asymmetricMatch = function(other) { + if (this.expectedObject == String) { + return typeof other == 'string' || other instanceof String; + } + + if (this.expectedObject == Number) { + return typeof other == 'number' || other instanceof Number; + } + + if (this.expectedObject == Function) { + return typeof other == 'function' || other instanceof Function; + } + + if (this.expectedObject == Object) { + return other !== null && typeof other == 'object'; + } + + if (this.expectedObject == Boolean) { + return typeof other == 'boolean'; + } + + /* jshint -W122 */ + /* global Symbol */ + if (typeof Symbol != 'undefined' && this.expectedObject == Symbol) { + return typeof other == 'symbol'; + } + /* jshint +W122 */ + + return other instanceof this.expectedObject; + }; + + Any.prototype.jasmineToString = function() { + return ''; + }; + + return Any; +}; + +getJasmineRequireObj().Anything = function(j$) { + function Anything() {} + + Anything.prototype.asymmetricMatch = function(other) { + return !j$.util.isUndefined(other) && other !== null; + }; + + Anything.prototype.jasmineToString = function() { + return ''; + }; + + return Anything; +}; + +getJasmineRequireObj().ArrayContaining = function(j$) { + function ArrayContaining(sample) { + this.sample = sample; + } + + ArrayContaining.prototype.asymmetricMatch = function(other, matchersUtil) { + if (!j$.isArray_(this.sample)) { + throw new Error( + 'You must provide an array to arrayContaining, not ' + + j$.pp(this.sample) + + '.' + ); + } + + // If the actual parameter is not an array, we can fail immediately, since it couldn't + // possibly be an "array containing" anything. However, we also want an empty sample + // array to match anything, so we need to double-check we aren't in that case + if (!j$.isArray_(other) && this.sample.length > 0) { + return false; + } + + for (var i = 0; i < this.sample.length; i++) { + var item = this.sample[i]; + if (!matchersUtil.contains(other, item)) { + return false; + } + } + + return true; + }; + + ArrayContaining.prototype.jasmineToString = function(pp) { + return ''; + }; + + return ArrayContaining; +}; + +getJasmineRequireObj().ArrayWithExactContents = function(j$) { + function ArrayWithExactContents(sample) { + this.sample = sample; + } + + ArrayWithExactContents.prototype.asymmetricMatch = function( + other, + matchersUtil + ) { + if (!j$.isArray_(this.sample)) { + throw new Error( + 'You must provide an array to arrayWithExactContents, not ' + + j$.pp(this.sample) + + '.' + ); + } + + if (this.sample.length !== other.length) { + return false; + } + + for (var i = 0; i < this.sample.length; i++) { + var item = this.sample[i]; + if (!matchersUtil.contains(other, item)) { + return false; + } + } + + return true; + }; + + ArrayWithExactContents.prototype.jasmineToString = function(pp) { + return ''; + }; + + return ArrayWithExactContents; +}; + +getJasmineRequireObj().Empty = function(j$) { + function Empty() {} + + Empty.prototype.asymmetricMatch = function(other) { + if (j$.isString_(other) || j$.isArray_(other) || j$.isTypedArray_(other)) { + return other.length === 0; + } + + if (j$.isMap(other) || j$.isSet(other)) { + return other.size === 0; + } + + if (j$.isObject_(other)) { + return Object.keys(other).length === 0; + } + return false; + }; + + Empty.prototype.jasmineToString = function() { + return ''; + }; + + return Empty; +}; + +getJasmineRequireObj().Falsy = function(j$) { + function Falsy() {} + + Falsy.prototype.asymmetricMatch = function(other) { + return !other; + }; + + Falsy.prototype.jasmineToString = function() { + return ''; + }; + + return Falsy; +}; + +getJasmineRequireObj().MapContaining = function(j$) { + function MapContaining(sample) { + if (!j$.isMap(sample)) { + throw new Error( + 'You must provide a map to `mapContaining`, not ' + j$.pp(sample) + ); + } + + this.sample = sample; + } + + MapContaining.prototype.asymmetricMatch = function(other, matchersUtil) { + if (!j$.isMap(other)) return false; + + var hasAllMatches = true; + j$.util.forEachBreakable(this.sample, function(breakLoop, value, key) { + // for each key/value pair in `sample` + // there should be at least one pair in `other` whose key and value both match + var hasMatch = false; + j$.util.forEachBreakable(other, function(oBreakLoop, oValue, oKey) { + if ( + matchersUtil.equals(oKey, key) && + matchersUtil.equals(oValue, value) + ) { + hasMatch = true; + oBreakLoop(); + } + }); + if (!hasMatch) { + hasAllMatches = false; + breakLoop(); + } + }); + + return hasAllMatches; + }; + + MapContaining.prototype.jasmineToString = function(pp) { + return ''; + }; + + return MapContaining; +}; + +getJasmineRequireObj().NotEmpty = function(j$) { + function NotEmpty() {} + + NotEmpty.prototype.asymmetricMatch = function(other) { + if (j$.isString_(other) || j$.isArray_(other) || j$.isTypedArray_(other)) { + return other.length !== 0; + } + + if (j$.isMap(other) || j$.isSet(other)) { + return other.size !== 0; + } + + if (j$.isObject_(other)) { + return Object.keys(other).length !== 0; + } + + return false; + }; + + NotEmpty.prototype.jasmineToString = function() { + return ''; + }; + + return NotEmpty; +}; + +getJasmineRequireObj().ObjectContaining = function(j$) { + function ObjectContaining(sample) { + this.sample = sample; + } + + function getPrototype(obj) { + if (Object.getPrototypeOf) { + return Object.getPrototypeOf(obj); + } + + if (obj.constructor.prototype == obj) { + return null; + } + + return obj.constructor.prototype; + } + + function hasProperty(obj, property) { + if (!obj || typeof obj !== 'object') { + return false; + } + + if (Object.prototype.hasOwnProperty.call(obj, property)) { + return true; + } + + return hasProperty(getPrototype(obj), property); + } + + ObjectContaining.prototype.asymmetricMatch = function(other, matchersUtil) { + if (typeof this.sample !== 'object') { + throw new Error( + "You must provide an object to objectContaining, not '" + + this.sample + + "'." + ); + } + if (typeof other !== 'object') { + return false; + } + + for (var property in this.sample) { + if ( + !hasProperty(other, property) || + !matchersUtil.equals(this.sample[property], other[property]) + ) { + return false; + } + } + + return true; + }; + + ObjectContaining.prototype.valuesForDiff_ = function(other, pp) { + if (!j$.isObject_(other)) { + return { + self: this.jasmineToString(pp), + other: other + }; + } + + var filteredOther = {}; + Object.keys(this.sample).forEach(function(k) { + // eq short-circuits comparison of objects that have different key sets, + // so include all keys even if undefined. + filteredOther[k] = other[k]; + }); + + return { + self: this.sample, + other: filteredOther + }; + }; + + ObjectContaining.prototype.jasmineToString = function(pp) { + return ''; + }; + + return ObjectContaining; +}; + +getJasmineRequireObj().SetContaining = function(j$) { + function SetContaining(sample) { + if (!j$.isSet(sample)) { + throw new Error( + 'You must provide a set to `setContaining`, not ' + j$.pp(sample) + ); + } + + this.sample = sample; + } + + SetContaining.prototype.asymmetricMatch = function(other, matchersUtil) { + if (!j$.isSet(other)) return false; + + var hasAllMatches = true; + j$.util.forEachBreakable(this.sample, function(breakLoop, item) { + // for each item in `sample` there should be at least one matching item in `other` + // (not using `matchersUtil.contains` because it compares set members by reference, + // not by deep value equality) + var hasMatch = false; + j$.util.forEachBreakable(other, function(oBreakLoop, oItem) { + if (matchersUtil.equals(oItem, item)) { + hasMatch = true; + oBreakLoop(); + } + }); + if (!hasMatch) { + hasAllMatches = false; + breakLoop(); + } + }); + + return hasAllMatches; + }; + + SetContaining.prototype.jasmineToString = function(pp) { + return ''; + }; + + return SetContaining; +}; + +getJasmineRequireObj().StringMatching = function(j$) { + function StringMatching(expected) { + if (!j$.isString_(expected) && !j$.isA_('RegExp', expected)) { + throw new Error('Expected is not a String or a RegExp'); + } + + this.regexp = new RegExp(expected); + } + + StringMatching.prototype.asymmetricMatch = function(other) { + return this.regexp.test(other); + }; + + StringMatching.prototype.jasmineToString = function() { + return ''; + }; + + return StringMatching; +}; + +getJasmineRequireObj().Truthy = function(j$) { + function Truthy() {} + + Truthy.prototype.asymmetricMatch = function(other) { + return !!other; + }; + + Truthy.prototype.jasmineToString = function() { + return ''; + }; + + return Truthy; +}; + +getJasmineRequireObj().asymmetricEqualityTesterArgCompatShim = function(j$) { + /* + Older versions of Jasmine passed an array of custom equality testers as the + second argument to each asymmetric equality tester's `asymmetricMatch` + method. Newer versions will pass a `MatchersUtil` instance. The + asymmetricEqualityTesterArgCompatShim allows for a graceful migration from + the old interface to the new by "being" both an array of custom equality + testers and a `MatchersUtil` at the same time. + + This code should be removed in the next major release. + */ + + var likelyArrayProps = [ + 'concat', + 'constructor', + 'copyWithin', + 'entries', + 'every', + 'fill', + 'filter', + 'find', + 'findIndex', + 'flat', + 'flatMap', + 'forEach', + 'includes', + 'indexOf', + 'join', + 'keys', + 'lastIndexOf', + 'length', + 'map', + 'pop', + 'push', + 'reduce', + 'reduceRight', + 'reverse', + 'shift', + 'slice', + 'some', + 'sort', + 'splice', + 'toLocaleString', + 'toSource', + 'toString', + 'unshift', + 'values' + ]; + + function asymmetricEqualityTesterArgCompatShim( + matchersUtil, + customEqualityTesters + ) { + var self = Object.create(matchersUtil), + props, + i, + k; + + copy(self, customEqualityTesters, 'length'); + + for (i = 0; i < customEqualityTesters.length; i++) { + copy(self, customEqualityTesters, i); + } + + var props = arrayProps(); + + for (i = 0; i < props.length; i++) { + k = props[i]; + // Skip length (dealt with above), and anything that collides with + // MatchesUtil e.g. an Array.prototype.contains method added by user code + if (k !== 'length' && !self[k]) { + copy(self, Array.prototype, k); + } + } + + return self; + } + + function copy(dest, src, propName) { + Object.defineProperty(dest, propName, { + get: function() { + return src[propName]; + } + }); + } + + function arrayProps() { + var props, a, k; + + if (!Object.getOwnPropertyDescriptors) { + return likelyArrayProps.filter(function(k) { + return Array.prototype.hasOwnProperty(k); + }); + } + + props = Object.getOwnPropertyDescriptors(Array.prototype); // eslint-disable-line compat/compat + a = []; + + for (k in props) { + a.push(k); + } + + return a; + } + + return asymmetricEqualityTesterArgCompatShim; +}; + +getJasmineRequireObj().CallTracker = function(j$) { + /** + * @namespace Spy#calls + * @since 2.0.0 + */ + function CallTracker() { + var calls = []; + var opts = {}; + + this.track = function(context) { + if (opts.cloneArgs) { + context.args = j$.util.cloneArgs(context.args); + } + calls.push(context); + }; + + /** + * Check whether this spy has been invoked. + * @name Spy#calls#any + * @since 2.0.0 + * @function + * @return {Boolean} + */ + this.any = function() { + return !!calls.length; + }; + + /** + * Get the number of invocations of this spy. + * @name Spy#calls#count + * @since 2.0.0 + * @function + * @return {Integer} + */ + this.count = function() { + return calls.length; + }; + + /** + * Get the arguments that were passed to a specific invocation of this spy. + * @name Spy#calls#argsFor + * @since 2.0.0 + * @function + * @param {Integer} index The 0-based invocation index. + * @return {Array} + */ + this.argsFor = function(index) { + var call = calls[index]; + return call ? call.args : []; + }; + + /** + * Get the "this" object that was passed to a specific invocation of this spy. + * @name Spy#calls#thisFor + * @function + * @param {Integer} index The 0-based invocation index. + * @return {Object?} + */ + this.thisFor = function(index) { + var call = calls[index]; + return call ? call.object : undefined; + }; + + /** + * Get the raw calls array for this spy. + * @name Spy#calls#all + * @since 2.0.0 + * @function + * @return {Spy.callData[]} + */ + this.all = function() { + return calls; + }; + + /** + * Get all of the arguments for each invocation of this spy in the order they were received. + * @name Spy#calls#allArgs + * @since 2.0.0 + * @function + * @return {Array} + */ + this.allArgs = function() { + var callArgs = []; + for (var i = 0; i < calls.length; i++) { + callArgs.push(calls[i].args); + } + + return callArgs; + }; + + /** + * Get the first invocation of this spy. + * @name Spy#calls#first + * @since 2.0.0 + * @function + * @return {ObjecSpy.callData} + */ + this.first = function() { + return calls[0]; + }; + + /** + * Get the most recent invocation of this spy. + * @name Spy#calls#mostRecent + * @since 2.0.0 + * @function + * @return {ObjecSpy.callData} + */ + this.mostRecent = function() { + return calls[calls.length - 1]; + }; + + /** + * Reset this spy as if it has never been called. + * @name Spy#calls#reset + * @since 2.0.0 + * @function + */ + this.reset = function() { + calls = []; + }; + + /** + * Set this spy to do a shallow clone of arguments passed to each invocation. + * @name Spy#calls#saveArgumentsByValue + * @since 2.5.0 + * @function + */ + this.saveArgumentsByValue = function() { + opts.cloneArgs = true; + }; + } + + return CallTracker; +}; + +getJasmineRequireObj().clearStack = function(j$) { + var maxInlineCallCount = 10; + + function messageChannelImpl(global, setTimeout) { + var channel = new global.MessageChannel(), + head = {}, + tail = head; + + var taskRunning = false; + channel.port1.onmessage = function() { + head = head.next; + var task = head.task; + delete head.task; + + if (taskRunning) { + global.setTimeout(task, 0); + } else { + try { + taskRunning = true; + task(); + } finally { + taskRunning = false; + } + } + }; + + var currentCallCount = 0; + return function clearStack(fn) { + currentCallCount++; + + if (currentCallCount < maxInlineCallCount) { + tail = tail.next = { task: fn }; + channel.port2.postMessage(0); + } else { + currentCallCount = 0; + setTimeout(fn); + } + }; + } + + function getClearStack(global) { + var currentCallCount = 0; + var realSetTimeout = global.setTimeout; + var setTimeoutImpl = function clearStack(fn) { + Function.prototype.apply.apply(realSetTimeout, [global, [fn, 0]]); + }; + + if (j$.isFunction_(global.setImmediate)) { + var realSetImmediate = global.setImmediate; + return function(fn) { + currentCallCount++; + + if (currentCallCount < maxInlineCallCount) { + realSetImmediate(fn); + } else { + currentCallCount = 0; + + setTimeoutImpl(fn); + } + }; + } else if (!j$.util.isUndefined(global.MessageChannel)) { + return messageChannelImpl(global, setTimeoutImpl); + } else { + return setTimeoutImpl; + } + } + + return getClearStack; +}; + +getJasmineRequireObj().Clock = function() { + /* global process */ + var NODE_JS = + typeof process !== 'undefined' && + process.versions && + typeof process.versions.node === 'string'; + + /** + * @class Clock + * @classdesc Jasmine's mock clock is used when testing time dependent code.
+ * _Note:_ Do not construct this directly. You can get the current clock with + * {@link jasmine.clock}. + * @hideconstructor + */ + function Clock(global, delayedFunctionSchedulerFactory, mockDate) { + var self = this, + realTimingFunctions = { + setTimeout: global.setTimeout, + clearTimeout: global.clearTimeout, + setInterval: global.setInterval, + clearInterval: global.clearInterval + }, + fakeTimingFunctions = { + setTimeout: setTimeout, + clearTimeout: clearTimeout, + setInterval: setInterval, + clearInterval: clearInterval + }, + installed = false, + delayedFunctionScheduler, + timer; + + self.FakeTimeout = FakeTimeout; + + /** + * Install the mock clock over the built-in methods. + * @name Clock#install + * @since 2.0.0 + * @function + * @return {Clock} + */ + self.install = function() { + if (!originalTimingFunctionsIntact()) { + throw new Error( + 'Jasmine Clock was unable to install over custom global timer functions. Is the clock already installed?' + ); + } + replace(global, fakeTimingFunctions); + timer = fakeTimingFunctions; + delayedFunctionScheduler = delayedFunctionSchedulerFactory(); + installed = true; + + return self; + }; + + /** + * Uninstall the mock clock, returning the built-in methods to their places. + * @name Clock#uninstall + * @since 2.0.0 + * @function + */ + self.uninstall = function() { + delayedFunctionScheduler = null; + mockDate.uninstall(); + replace(global, realTimingFunctions); + + timer = realTimingFunctions; + installed = false; + }; + + /** + * Execute a function with a mocked Clock + * + * The clock will be {@link Clock#install|install}ed before the function is called and {@link Clock#uninstall|uninstall}ed in a `finally` after the function completes. + * @name Clock#withMock + * @since 2.3.0 + * @function + * @param {Function} closure The function to be called. + */ + self.withMock = function(closure) { + this.install(); + try { + closure(); + } finally { + this.uninstall(); + } + }; + + /** + * Instruct the installed Clock to also mock the date returned by `new Date()` + * @name Clock#mockDate + * @since 2.1.0 + * @function + * @param {Date} [initialDate=now] The `Date` to provide. + */ + self.mockDate = function(initialDate) { + mockDate.install(initialDate); + }; + + self.setTimeout = function(fn, delay, params) { + return Function.prototype.apply.apply(timer.setTimeout, [ + global, + arguments + ]); + }; + + self.setInterval = function(fn, delay, params) { + return Function.prototype.apply.apply(timer.setInterval, [ + global, + arguments + ]); + }; + + self.clearTimeout = function(id) { + return Function.prototype.call.apply(timer.clearTimeout, [global, id]); + }; + + self.clearInterval = function(id) { + return Function.prototype.call.apply(timer.clearInterval, [global, id]); + }; + + /** + * Tick the Clock forward, running any enqueued timeouts along the way + * @name Clock#tick + * @since 1.3.0 + * @function + * @param {int} millis The number of milliseconds to tick. + */ + self.tick = function(millis) { + if (installed) { + delayedFunctionScheduler.tick(millis, function(millis) { + mockDate.tick(millis); + }); + } else { + throw new Error( + 'Mock clock is not installed, use jasmine.clock().install()' + ); + } + }; + + return self; + + function originalTimingFunctionsIntact() { + return ( + global.setTimeout === realTimingFunctions.setTimeout && + global.clearTimeout === realTimingFunctions.clearTimeout && + global.setInterval === realTimingFunctions.setInterval && + global.clearInterval === realTimingFunctions.clearInterval + ); + } + + function replace(dest, source) { + for (var prop in source) { + dest[prop] = source[prop]; + } + } + + function setTimeout(fn, delay) { + if (!NODE_JS) { + return delayedFunctionScheduler.scheduleFunction( + fn, + delay, + argSlice(arguments, 2) + ); + } + + var timeout = new FakeTimeout(); + + delayedFunctionScheduler.scheduleFunction( + fn, + delay, + argSlice(arguments, 2), + false, + timeout + ); + + return timeout; + } + + function clearTimeout(id) { + return delayedFunctionScheduler.removeFunctionWithId(id); + } + + function setInterval(fn, interval) { + if (!NODE_JS) { + return delayedFunctionScheduler.scheduleFunction( + fn, + interval, + argSlice(arguments, 2), + true + ); + } + + var timeout = new FakeTimeout(); + + delayedFunctionScheduler.scheduleFunction( + fn, + interval, + argSlice(arguments, 2), + true, + timeout + ); + + return timeout; + } + + function clearInterval(id) { + return delayedFunctionScheduler.removeFunctionWithId(id); + } + + function argSlice(argsObj, n) { + return Array.prototype.slice.call(argsObj, n); + } + } + + /** + * Mocks Node.js Timeout class + */ + function FakeTimeout() {} + + FakeTimeout.prototype.ref = function() { + return this; + }; + + FakeTimeout.prototype.unref = function() { + return this; + }; + + return Clock; +}; + +getJasmineRequireObj().DelayedFunctionScheduler = function(j$) { + function DelayedFunctionScheduler() { + var self = this; + var scheduledLookup = []; + var scheduledFunctions = {}; + var currentTime = 0; + var delayedFnCount = 0; + var deletedKeys = []; + + self.tick = function(millis, tickDate) { + millis = millis || 0; + var endTime = currentTime + millis; + + runScheduledFunctions(endTime, tickDate); + currentTime = endTime; + }; + + self.scheduleFunction = function( + funcToCall, + millis, + params, + recurring, + timeoutKey, + runAtMillis + ) { + var f; + if (typeof funcToCall === 'string') { + /* jshint evil: true */ + f = function() { + return eval(funcToCall); + }; + /* jshint evil: false */ + } else { + f = funcToCall; + } + + millis = millis || 0; + timeoutKey = timeoutKey || ++delayedFnCount; + runAtMillis = runAtMillis || currentTime + millis; + + var funcToSchedule = { + runAtMillis: runAtMillis, + funcToCall: f, + recurring: recurring, + params: params, + timeoutKey: timeoutKey, + millis: millis + }; + + if (runAtMillis in scheduledFunctions) { + scheduledFunctions[runAtMillis].push(funcToSchedule); + } else { + scheduledFunctions[runAtMillis] = [funcToSchedule]; + scheduledLookup.push(runAtMillis); + scheduledLookup.sort(function(a, b) { + return a - b; + }); + } + + return timeoutKey; + }; + + self.removeFunctionWithId = function(timeoutKey) { + deletedKeys.push(timeoutKey); + + for (var runAtMillis in scheduledFunctions) { + var funcs = scheduledFunctions[runAtMillis]; + var i = indexOfFirstToPass(funcs, function(func) { + return func.timeoutKey === timeoutKey; + }); + + if (i > -1) { + if (funcs.length === 1) { + delete scheduledFunctions[runAtMillis]; + deleteFromLookup(runAtMillis); + } else { + funcs.splice(i, 1); + } + + // intervals get rescheduled when executed, so there's never more + // than a single scheduled function with a given timeoutKey + break; + } + } + }; + + return self; + + function indexOfFirstToPass(array, testFn) { + var index = -1; + + for (var i = 0; i < array.length; ++i) { + if (testFn(array[i])) { + index = i; + break; + } + } + + return index; + } + + function deleteFromLookup(key) { + var value = Number(key); + var i = indexOfFirstToPass(scheduledLookup, function(millis) { + return millis === value; + }); + + if (i > -1) { + scheduledLookup.splice(i, 1); + } + } + + function reschedule(scheduledFn) { + self.scheduleFunction( + scheduledFn.funcToCall, + scheduledFn.millis, + scheduledFn.params, + true, + scheduledFn.timeoutKey, + scheduledFn.runAtMillis + scheduledFn.millis + ); + } + + function forEachFunction(funcsToRun, callback) { + for (var i = 0; i < funcsToRun.length; ++i) { + callback(funcsToRun[i]); + } + } + + function runScheduledFunctions(endTime, tickDate) { + tickDate = tickDate || function() {}; + if (scheduledLookup.length === 0 || scheduledLookup[0] > endTime) { + tickDate(endTime - currentTime); + return; + } + + do { + deletedKeys = []; + var newCurrentTime = scheduledLookup.shift(); + tickDate(newCurrentTime - currentTime); + + currentTime = newCurrentTime; + + var funcsToRun = scheduledFunctions[currentTime]; + + delete scheduledFunctions[currentTime]; + + forEachFunction(funcsToRun, function(funcToRun) { + if (funcToRun.recurring) { + reschedule(funcToRun); + } + }); + + forEachFunction(funcsToRun, function(funcToRun) { + if (j$.util.arrayContains(deletedKeys, funcToRun.timeoutKey)) { + // skip a timeoutKey deleted whilst we were running + return; + } + funcToRun.funcToCall.apply(null, funcToRun.params || []); + }); + deletedKeys = []; + } while ( + scheduledLookup.length > 0 && + // checking first if we're out of time prevents setTimeout(0) + // scheduled in a funcToRun from forcing an extra iteration + currentTime !== endTime && + scheduledLookup[0] <= endTime + ); + + // ran out of functions to call, but still time left on the clock + if (currentTime !== endTime) { + tickDate(endTime - currentTime); + } + } + } + + return DelayedFunctionScheduler; +}; + +getJasmineRequireObj().errors = function() { + function ExpectationFailed() {} + + ExpectationFailed.prototype = new Error(); + ExpectationFailed.prototype.constructor = ExpectationFailed; + + return { + ExpectationFailed: ExpectationFailed + }; +}; + +getJasmineRequireObj().ExceptionFormatter = function(j$) { + var ignoredProperties = [ + 'name', + 'message', + 'stack', + 'fileName', + 'sourceURL', + 'line', + 'lineNumber', + 'column', + 'description', + 'jasmineMessage' + ]; + + function ExceptionFormatter(options) { + var jasmineFile = (options && options.jasmineFile) || j$.util.jasmineFile(); + this.message = function(error) { + var message = ''; + + if (error.jasmineMessage) { + message += error.jasmineMessage; + } else if (error.name && error.message) { + message += error.name + ': ' + error.message; + } else if (error.message) { + message += error.message; + } else { + message += error.toString() + ' thrown'; + } + + if (error.fileName || error.sourceURL) { + message += ' in ' + (error.fileName || error.sourceURL); + } + + if (error.line || error.lineNumber) { + message += ' (line ' + (error.line || error.lineNumber) + ')'; + } + + return message; + }; + + this.stack = function(error) { + if (!error || !error.stack) { + return null; + } + + var stackTrace = new j$.StackTrace(error); + var lines = filterJasmine(stackTrace); + var result = ''; + + if (stackTrace.message) { + lines.unshift(stackTrace.message); + } + + result += formatProperties(error); + result += lines.join('\n'); + + return result; + }; + + function filterJasmine(stackTrace) { + var result = [], + jasmineMarker = + stackTrace.style === 'webkit' ? '' : ' at '; + + stackTrace.frames.forEach(function(frame) { + if (frame.file !== jasmineFile) { + result.push(frame.raw); + } else if (result[result.length - 1] !== jasmineMarker) { + result.push(jasmineMarker); + } + }); + + return result; + } + + function formatProperties(error) { + if (!(error instanceof Object)) { + return; + } + + var result = {}; + var empty = true; + + for (var prop in error) { + if (j$.util.arrayContains(ignoredProperties, prop)) { + continue; + } + result[prop] = error[prop]; + empty = false; + } + + if (!empty) { + return 'error properties: ' + j$.pp(result) + '\n'; + } + + return ''; + } + } + + return ExceptionFormatter; +}; + +getJasmineRequireObj().Expectation = function(j$) { + /** + * Matchers that come with Jasmine out of the box. + * @namespace matchers + */ + function Expectation(options) { + this.expector = new j$.Expector(options); + + var customMatchers = options.customMatchers || {}; + for (var matcherName in customMatchers) { + this[matcherName] = wrapSyncCompare( + matcherName, + customMatchers[matcherName] + ); + } + } + + /** + * Add some context for an {@link expect} + * @function + * @name matchers#withContext + * @since 3.3.0 + * @param {String} message - Additional context to show when the matcher fails + * @return {matchers} + */ + Expectation.prototype.withContext = function withContext(message) { + return addFilter(this, new ContextAddingFilter(message)); + }; + + /** + * Invert the matcher following this {@link expect} + * @member + * @name matchers#not + * @since 1.3.0 + * @type {matchers} + * @example + * expect(something).not.toBe(true); + */ + Object.defineProperty(Expectation.prototype, 'not', { + get: function() { + return addFilter(this, syncNegatingFilter); + } + }); + + /** + * Asynchronous matchers that operate on an actual value which is a promise, + * and return a promise. + * + * Most async matchers will wait indefinitely for the promise to be resolved + * or rejected, resulting in a spec timeout if that never happens. If you + * expect that the promise will already be resolved or rejected at the time + * the matcher is called, you can use the {@link async-matchers#already} + * modifier to get a faster failure with a more helpful message. + * + * Note: Specs must await the result of each async matcher, return the + * promise returned by the matcher, or return a promise that's derived from + * the one returned by the matcher. Otherwise the matcher will not be + * evaluated before the spec completes. + * + * @example + * // Good + * await expectAsync(aPromise).toBeResolved(); + * @example + * // Good + * return expectAsync(aPromise).toBeResolved(); + * @example + * // Good + * return expectAsync(aPromise).toBeResolved() + * .then(function() { + * // more spec code + * }); + * @example + * // Bad + * expectAsync(aPromise).toBeResolved(); + * @namespace async-matchers + */ + function AsyncExpectation(options) { + var global = options.global || j$.getGlobal(); + this.expector = new j$.Expector(options); + + if (!global.Promise) { + throw new Error( + 'expectAsync is unavailable because the environment does not support promises.' + ); + } + + var customAsyncMatchers = options.customAsyncMatchers || {}; + for (var matcherName in customAsyncMatchers) { + this[matcherName] = wrapAsyncCompare( + matcherName, + customAsyncMatchers[matcherName] + ); + } + } + + /** + * Add some context for an {@link expectAsync} + * @function + * @name async-matchers#withContext + * @since 3.3.0 + * @param {String} message - Additional context to show when the async matcher fails + * @return {async-matchers} + */ + AsyncExpectation.prototype.withContext = function withContext(message) { + return addFilter(this, new ContextAddingFilter(message)); + }; + + /** + * Invert the matcher following this {@link expectAsync} + * @member + * @name async-matchers#not + * @type {async-matchers} + * @example + * await expectAsync(myPromise).not.toBeResolved(); + * @example + * return expectAsync(myPromise).not.toBeResolved(); + */ + Object.defineProperty(AsyncExpectation.prototype, 'not', { + get: function() { + return addFilter(this, asyncNegatingFilter); + } + }); + + /** + * Fail as soon as possible if the actual is pending. + * Otherwise evaluate the matcher. + * @member + * @name async-matchers#already + * @type {async-matchers} + * @example + * await expectAsync(myPromise).already.toBeResolved(); + * @example + * return expectAsync(myPromise).already.toBeResolved(); + */ + Object.defineProperty(AsyncExpectation.prototype, 'already', { + get: function() { + return addFilter(this, expectSettledPromiseFilter); + } + }); + + function wrapSyncCompare(name, matcherFactory) { + return function() { + var result = this.expector.compare(name, matcherFactory, arguments); + this.expector.processResult(result); + }; + } + + function wrapAsyncCompare(name, matcherFactory) { + return function() { + var self = this; + + // Capture the call stack here, before we go async, so that it will contain + // frames that are relevant to the user instead of just parts of Jasmine. + var errorForStack = j$.util.errorWithStack(); + + return this.expector + .compare(name, matcherFactory, arguments) + .then(function(result) { + self.expector.processResult(result, errorForStack); + }); + }; + } + + function addCoreMatchers(prototype, matchers, wrapper) { + for (var matcherName in matchers) { + var matcher = matchers[matcherName]; + prototype[matcherName] = wrapper(matcherName, matcher); + } + } + + function addFilter(source, filter) { + var result = Object.create(source); + result.expector = source.expector.addFilter(filter); + return result; + } + + function negatedFailureMessage(result, matcherName, args, matchersUtil) { + if (result.message) { + if (j$.isFunction_(result.message)) { + return result.message(); + } else { + return result.message; + } + } + + args = args.slice(); + args.unshift(true); + args.unshift(matcherName); + return matchersUtil.buildFailureMessage.apply(matchersUtil, args); + } + + function negate(result) { + result.pass = !result.pass; + return result; + } + + var syncNegatingFilter = { + selectComparisonFunc: function(matcher) { + function defaultNegativeCompare() { + return negate(matcher.compare.apply(null, arguments)); + } + + return matcher.negativeCompare || defaultNegativeCompare; + }, + buildFailureMessage: negatedFailureMessage + }; + + var asyncNegatingFilter = { + selectComparisonFunc: function(matcher) { + function defaultNegativeCompare() { + return matcher.compare.apply(this, arguments).then(negate); + } + + return matcher.negativeCompare || defaultNegativeCompare; + }, + buildFailureMessage: negatedFailureMessage + }; + + var expectSettledPromiseFilter = { + selectComparisonFunc: function(matcher) { + return function(actual) { + var matcherArgs = arguments; + + return j$.isPending_(actual).then(function(isPending) { + if (isPending) { + return { + pass: false, + message: + 'Expected a promise to be settled (via ' + + 'expectAsync(...).already) but it was pending.' + }; + } else { + return matcher.compare.apply(null, matcherArgs); + } + }); + }; + } + }; + + function ContextAddingFilter(message) { + this.message = message; + } + + ContextAddingFilter.prototype.modifyFailureMessage = function(msg) { + var nl = msg.indexOf('\n'); + + if (nl === -1) { + return this.message + ': ' + msg; + } else { + return this.message + ':\n' + indent(msg); + } + }; + + function indent(s) { + return s.replace(/^/gm, ' '); + } + + return { + factory: function(options) { + return new Expectation(options || {}); + }, + addCoreMatchers: function(matchers) { + addCoreMatchers(Expectation.prototype, matchers, wrapSyncCompare); + }, + asyncFactory: function(options) { + return new AsyncExpectation(options || {}); + }, + addAsyncCoreMatchers: function(matchers) { + addCoreMatchers(AsyncExpectation.prototype, matchers, wrapAsyncCompare); + } + }; +}; + +getJasmineRequireObj().ExpectationFilterChain = function() { + function ExpectationFilterChain(maybeFilter, prev) { + this.filter_ = maybeFilter; + this.prev_ = prev; + } + + ExpectationFilterChain.prototype.addFilter = function(filter) { + return new ExpectationFilterChain(filter, this); + }; + + ExpectationFilterChain.prototype.selectComparisonFunc = function(matcher) { + return this.callFirst_('selectComparisonFunc', arguments).result; + }; + + ExpectationFilterChain.prototype.buildFailureMessage = function( + result, + matcherName, + args, + matchersUtil + ) { + return this.callFirst_('buildFailureMessage', arguments).result; + }; + + ExpectationFilterChain.prototype.modifyFailureMessage = function(msg) { + var result = this.callFirst_('modifyFailureMessage', arguments).result; + return result || msg; + }; + + ExpectationFilterChain.prototype.callFirst_ = function(fname, args) { + var prevResult; + + if (this.prev_) { + prevResult = this.prev_.callFirst_(fname, args); + + if (prevResult.found) { + return prevResult; + } + } + + if (this.filter_ && this.filter_[fname]) { + return { + found: true, + result: this.filter_[fname].apply(this.filter_, args) + }; + } + + return { found: false }; + }; + + return ExpectationFilterChain; +}; + +//TODO: expectation result may make more sense as a presentation of an expectation. +getJasmineRequireObj().buildExpectationResult = function(j$) { + function buildExpectationResult(options) { + var messageFormatter = options.messageFormatter || function() {}, + stackFormatter = options.stackFormatter || function() {}; + + /** + * @typedef Expectation + * @property {String} matcherName - The name of the matcher that was executed for this expectation. + * @property {String} message - The failure message for the expectation. + * @property {String} stack - The stack trace for the failure if available. + * @property {Boolean} passed - Whether the expectation passed or failed. + * @property {Object} expected - If the expectation failed, what was the expected value. + * @property {Object} actual - If the expectation failed, what actual value was produced. + */ + var result = { + matcherName: options.matcherName, + message: message(), + stack: stack(), + passed: options.passed + }; + + if (!result.passed) { + result.expected = options.expected; + result.actual = options.actual; + + if (options.error && !j$.isString_(options.error)) { + if ('code' in options.error) { + result.code = options.error.code; + } + + if ( + options.error.code === 'ERR_ASSERTION' && + options.expected === '' && + options.actual === '' + ) { + result.expected = options.error.expected; + result.actual = options.error.actual; + result.matcherName = 'assert ' + options.error.operator; + } + } + } + + return result; + + function message() { + if (options.passed) { + return 'Passed.'; + } else if (options.message) { + return options.message; + } else if (options.error) { + return messageFormatter(options.error); + } + return ''; + } + + function stack() { + if (options.passed) { + return ''; + } + + var error = options.error; + if (!error) { + if (options.errorForStack) { + error = options.errorForStack; + } else if (options.stack) { + error = options; + } else { + try { + throw new Error(message()); + } catch (e) { + error = e; + } + } + } + return stackFormatter(error); + } + } + + return buildExpectationResult; +}; + +getJasmineRequireObj().Expector = function(j$) { + function Expector(options) { + this.matchersUtil = options.matchersUtil || { + buildFailureMessage: function() {} + }; + this.customEqualityTesters = options.customEqualityTesters || []; + this.actual = options.actual; + this.addExpectationResult = options.addExpectationResult || function() {}; + this.filters = new j$.ExpectationFilterChain(); + } + + Expector.prototype.instantiateMatcher = function( + matcherName, + matcherFactory, + args + ) { + this.matcherName = matcherName; + this.args = Array.prototype.slice.call(args, 0); + this.expected = this.args.slice(0); + + this.args.unshift(this.actual); + + var matcher = matcherFactory(this.matchersUtil, this.customEqualityTesters); + var comparisonFunc = this.filters.selectComparisonFunc(matcher); + return comparisonFunc || matcher.compare; + }; + + Expector.prototype.buildMessage = function(result) { + var self = this; + + if (result.pass) { + return ''; + } + + var msg = this.filters.buildFailureMessage( + result, + this.matcherName, + this.args, + this.matchersUtil, + defaultMessage + ); + return this.filters.modifyFailureMessage(msg || defaultMessage()); + + function defaultMessage() { + if (!result.message) { + var args = self.args.slice(); + args.unshift(false); + args.unshift(self.matcherName); + return self.matchersUtil.buildFailureMessage.apply( + self.matchersUtil, + args + ); + } else if (j$.isFunction_(result.message)) { + return result.message(); + } else { + return result.message; + } + } + }; + + Expector.prototype.compare = function(matcherName, matcherFactory, args) { + var matcherCompare = this.instantiateMatcher( + matcherName, + matcherFactory, + args + ); + return matcherCompare.apply(null, this.args); + }; + + Expector.prototype.addFilter = function(filter) { + var result = Object.create(this); + result.filters = this.filters.addFilter(filter); + return result; + }; + + Expector.prototype.processResult = function(result, errorForStack) { + var message = this.buildMessage(result); + + if (this.expected.length === 1) { + this.expected = this.expected[0]; + } + + this.addExpectationResult(result.pass, { + matcherName: this.matcherName, + passed: result.pass, + message: message, + error: errorForStack ? undefined : result.error, + errorForStack: errorForStack || undefined, + actual: this.actual, + expected: this.expected // TODO: this may need to be arrayified/sliced + }); + }; + + return Expector; +}; + +getJasmineRequireObj().formatErrorMsg = function() { + function generateErrorMsg(domain, usage) { + var usageDefinition = usage ? '\nUsage: ' + usage : ''; + + return function errorMsg(msg) { + return domain + ' : ' + msg + usageDefinition; + }; + } + + return generateErrorMsg; +}; + +getJasmineRequireObj().GlobalErrors = function(j$) { + function GlobalErrors(global) { + var handlers = []; + global = global || j$.getGlobal(); + + var onerror = function onerror() { + var handler = handlers[handlers.length - 1]; + + if (handler) { + handler.apply(null, Array.prototype.slice.call(arguments, 0)); + } else { + throw arguments[0]; + } + }; + + this.originalHandlers = {}; + this.jasmineHandlers = {}; + this.installOne_ = function installOne_(errorType, jasmineMessage) { + function taggedOnError(error) { + var substituteMsg; + + if (j$.isError_(error)) { + error.jasmineMessage = jasmineMessage + ': ' + error; + } else { + if (error) { + substituteMsg = jasmineMessage + ': ' + error; + } else { + substituteMsg = jasmineMessage + ' with no error or message'; + } + + if (errorType === 'unhandledRejection') { + substituteMsg += + '\n' + + '(Tip: to get a useful stack trace, use ' + + 'Promise.reject(new Error(...)) instead of Promise.reject(' + + (error ? '...' : '') + + ').)'; + } + + error = new Error(substituteMsg); + } + + var handler = handlers[handlers.length - 1]; + + if (handler) { + handler(error); + } else { + throw error; + } + } + + this.originalHandlers[errorType] = global.process.listeners(errorType); + this.jasmineHandlers[errorType] = taggedOnError; + + global.process.removeAllListeners(errorType); + global.process.on(errorType, taggedOnError); + + this.uninstall = function uninstall() { + var errorTypes = Object.keys(this.originalHandlers); + for (var iType = 0; iType < errorTypes.length; iType++) { + var errorType = errorTypes[iType]; + global.process.removeListener( + errorType, + this.jasmineHandlers[errorType] + ); + for (var i = 0; i < this.originalHandlers[errorType].length; i++) { + global.process.on(errorType, this.originalHandlers[errorType][i]); + } + delete this.originalHandlers[errorType]; + delete this.jasmineHandlers[errorType]; + } + }; + }; + + this.install = function install() { + if ( + global.process && + global.process.listeners && + j$.isFunction_(global.process.on) + ) { + this.installOne_('uncaughtException', 'Uncaught exception'); + this.installOne_('unhandledRejection', 'Unhandled promise rejection'); + } else { + var originalHandler = global.onerror; + global.onerror = onerror; + + var browserRejectionHandler = function browserRejectionHandler(event) { + if (j$.isError_(event.reason)) { + event.reason.jasmineMessage = + 'Unhandled promise rejection: ' + event.reason; + global.onerror(event.reason); + } else { + global.onerror('Unhandled promise rejection: ' + event.reason); + } + }; + + if (global.addEventListener) { + global.addEventListener( + 'unhandledrejection', + browserRejectionHandler + ); + } + + this.uninstall = function uninstall() { + global.onerror = originalHandler; + if (global.removeEventListener) { + global.removeEventListener( + 'unhandledrejection', + browserRejectionHandler + ); + } + }; + } + }; + + this.pushListener = function pushListener(listener) { + handlers.push(listener); + }; + + this.popListener = function popListener(listener) { + if (!listener) { + throw new Error('popListener expects a listener'); + } + + handlers.pop(); + }; + } + + return GlobalErrors; +}; + +/* eslint-disable compat/compat */ +getJasmineRequireObj().toBePending = function(j$) { + /** + * Expect a promise to be pending, i.e. the promise is neither resolved nor rejected. + * @function + * @async + * @name async-matchers#toBePending + * @since 3.6 + * @example + * await expectAsync(aPromise).toBePending(); + */ + return function toBePending() { + return { + compare: function(actual) { + if (!j$.isPromiseLike(actual)) { + throw new Error('Expected toBePending to be called on a promise.'); + } + var want = {}; + return Promise.race([actual, Promise.resolve(want)]).then( + function(got) { + return { pass: want === got }; + }, + function() { + return { pass: false }; + } + ); + } + }; + }; +}; + +getJasmineRequireObj().toBeRejected = function(j$) { + /** + * Expect a promise to be rejected. + * @function + * @async + * @name async-matchers#toBeRejected + * @since 3.1.0 + * @example + * await expectAsync(aPromise).toBeRejected(); + * @example + * return expectAsync(aPromise).toBeRejected(); + */ + return function toBeRejected() { + return { + compare: function(actual) { + if (!j$.isPromiseLike(actual)) { + throw new Error('Expected toBeRejected to be called on a promise.'); + } + return actual.then( + function() { + return { pass: false }; + }, + function() { + return { pass: true }; + } + ); + } + }; + }; +}; + +getJasmineRequireObj().toBeRejectedWith = function(j$) { + /** + * Expect a promise to be rejected with a value equal to the expected, using deep equality comparison. + * @function + * @async + * @name async-matchers#toBeRejectedWith + * @since 3.3.0 + * @param {Object} expected - Value that the promise is expected to be rejected with + * @example + * await expectAsync(aPromise).toBeRejectedWith({prop: 'value'}); + * @example + * return expectAsync(aPromise).toBeRejectedWith({prop: 'value'}); + */ + return function toBeRejectedWith(matchersUtil) { + return { + compare: function(actualPromise, expectedValue) { + if (!j$.isPromiseLike(actualPromise)) { + throw new Error( + 'Expected toBeRejectedWith to be called on a promise.' + ); + } + + function prefix(passed) { + return ( + 'Expected a promise ' + + (passed ? 'not ' : '') + + 'to be rejected with ' + + matchersUtil.pp(expectedValue) + ); + } + + return actualPromise.then( + function() { + return { + pass: false, + message: prefix(false) + ' but it was resolved.' + }; + }, + function(actualValue) { + if (matchersUtil.equals(actualValue, expectedValue)) { + return { + pass: true, + message: prefix(true) + '.' + }; + } else { + return { + pass: false, + message: + prefix(false) + + ' but it was rejected with ' + + matchersUtil.pp(actualValue) + + '.' + }; + } + } + ); + } + }; + }; +}; + +getJasmineRequireObj().toBeRejectedWithError = function(j$) { + /** + * Expect a promise to be rejected with a value matched to the expected + * @function + * @async + * @name async-matchers#toBeRejectedWithError + * @since 3.5.0 + * @param {Error} [expected] - `Error` constructor the object that was thrown needs to be an instance of. If not provided, `Error` will be used. + * @param {RegExp|String} [message] - The message that should be set on the thrown `Error` + * @example + * await expectAsync(aPromise).toBeRejectedWithError(MyCustomError, 'Error message'); + * await expectAsync(aPromise).toBeRejectedWithError(MyCustomError, /Error message/); + * await expectAsync(aPromise).toBeRejectedWithError(MyCustomError); + * await expectAsync(aPromise).toBeRejectedWithError('Error message'); + * return expectAsync(aPromise).toBeRejectedWithError(/Error message/); + */ + return function toBeRejectedWithError(matchersUtil) { + return { + compare: function(actualPromise, arg1, arg2) { + if (!j$.isPromiseLike(actualPromise)) { + throw new Error( + 'Expected toBeRejectedWithError to be called on a promise.' + ); + } + + var expected = getExpectedFromArgs(arg1, arg2, matchersUtil); + + return actualPromise.then( + function() { + return { + pass: false, + message: 'Expected a promise to be rejected but it was resolved.' + }; + }, + function(actualValue) { + return matchError(actualValue, expected, matchersUtil); + } + ); + } + }; + }; + + function matchError(actual, expected, matchersUtil) { + if (!j$.isError_(actual)) { + return fail(expected, 'rejected with ' + matchersUtil.pp(actual)); + } + + if (!(actual instanceof expected.error)) { + return fail( + expected, + 'rejected with type ' + j$.fnNameFor(actual.constructor) + ); + } + + var actualMessage = actual.message; + + if ( + actualMessage === expected.message || + typeof expected.message === 'undefined' + ) { + return pass(expected); + } + + if ( + expected.message instanceof RegExp && + expected.message.test(actualMessage) + ) { + return pass(expected); + } + + return fail(expected, 'rejected with ' + matchersUtil.pp(actual)); + } + + function pass(expected) { + return { + pass: true, + message: + 'Expected a promise not to be rejected with ' + + expected.printValue + + ', but it was.' + }; + } + + function fail(expected, message) { + return { + pass: false, + message: + 'Expected a promise to be rejected with ' + + expected.printValue + + ' but it was ' + + message + + '.' + }; + } + + function getExpectedFromArgs(arg1, arg2, matchersUtil) { + var error, message; + + if (isErrorConstructor(arg1)) { + error = arg1; + message = arg2; + } else { + error = Error; + message = arg1; + } + + return { + error: error, + message: message, + printValue: + j$.fnNameFor(error) + + (typeof message === 'undefined' ? '' : ': ' + matchersUtil.pp(message)) + }; + } + + function isErrorConstructor(value) { + return ( + typeof value === 'function' && + (value === Error || j$.isError_(value.prototype)) + ); + } +}; + +getJasmineRequireObj().toBeResolved = function(j$) { + /** + * Expect a promise to be resolved. + * @function + * @async + * @name async-matchers#toBeResolved + * @since 3.1.0 + * @example + * await expectAsync(aPromise).toBeResolved(); + * @example + * return expectAsync(aPromise).toBeResolved(); + */ + return function toBeResolved(matchersUtil) { + return { + compare: function(actual) { + if (!j$.isPromiseLike(actual)) { + throw new Error('Expected toBeResolved to be called on a promise.'); + } + + return actual.then( + function() { + return { pass: true }; + }, + function(e) { + return { + pass: false, + message: + 'Expected a promise to be resolved but it was ' + + 'rejected with ' + + matchersUtil.pp(e) + + '.' + }; + } + ); + } + }; + }; +}; + +getJasmineRequireObj().toBeResolvedTo = function(j$) { + /** + * Expect a promise to be resolved to a value equal to the expected, using deep equality comparison. + * @function + * @async + * @name async-matchers#toBeResolvedTo + * @since 3.1.0 + * @param {Object} expected - Value that the promise is expected to resolve to + * @example + * await expectAsync(aPromise).toBeResolvedTo({prop: 'value'}); + * @example + * return expectAsync(aPromise).toBeResolvedTo({prop: 'value'}); + */ + return function toBeResolvedTo(matchersUtil) { + return { + compare: function(actualPromise, expectedValue) { + if (!j$.isPromiseLike(actualPromise)) { + throw new Error('Expected toBeResolvedTo to be called on a promise.'); + } + + function prefix(passed) { + return ( + 'Expected a promise ' + + (passed ? 'not ' : '') + + 'to be resolved to ' + + matchersUtil.pp(expectedValue) + ); + } + + return actualPromise.then( + function(actualValue) { + if (matchersUtil.equals(actualValue, expectedValue)) { + return { + pass: true, + message: prefix(true) + '.' + }; + } else { + return { + pass: false, + message: + prefix(false) + + ' but it was resolved to ' + + matchersUtil.pp(actualValue) + + '.' + }; + } + }, + function(e) { + return { + pass: false, + message: + prefix(false) + + ' but it was rejected with ' + + matchersUtil.pp(e) + + '.' + }; + } + ); + } + }; + }; +}; + +getJasmineRequireObj().DiffBuilder = function(j$) { + return function DiffBuilder(config) { + var prettyPrinter = (config || {}).prettyPrinter || j$.makePrettyPrinter(), + mismatches = new j$.MismatchTree(), + path = new j$.ObjectPath(), + actualRoot = undefined, + expectedRoot = undefined; + + return { + setRoots: function(actual, expected) { + actualRoot = actual; + expectedRoot = expected; + }, + + recordMismatch: function(formatter) { + mismatches.add(path, formatter); + }, + + getMessage: function() { + var messages = []; + + mismatches.traverse(function(path, isLeaf, formatter) { + var actualCustom, + expectedCustom, + useCustom, + derefResult = dereferencePath( + path, + actualRoot, + expectedRoot, + prettyPrinter + ), + actual = derefResult.actual, + expected = derefResult.expected; + + if (formatter) { + messages.push(formatter(actual, expected, path, prettyPrinter)); + return true; + } + + actualCustom = prettyPrinter.customFormat_(actual); + expectedCustom = prettyPrinter.customFormat_(expected); + useCustom = !( + j$.util.isUndefined(actualCustom) && + j$.util.isUndefined(expectedCustom) + ); + + if (useCustom) { + messages.push( + wrapPrettyPrinted(actualCustom, expectedCustom, path) + ); + return false; // don't recurse further + } + + if (isLeaf) { + messages.push( + defaultFormatter(actual, expected, path, prettyPrinter) + ); + } + + return true; + }); + + return messages.join('\n'); + }, + + withPath: function(pathComponent, block) { + var oldPath = path; + path = path.add(pathComponent); + block(); + path = oldPath; + } + }; + + function defaultFormatter(actual, expected, path, prettyPrinter) { + return wrapPrettyPrinted( + prettyPrinter(actual), + prettyPrinter(expected), + path + ); + } + + function wrapPrettyPrinted(actual, expected, path) { + return ( + 'Expected ' + + path + + (path.depth() ? ' = ' : '') + + actual + + ' to equal ' + + expected + + '.' + ); + } + }; + + function dereferencePath(objectPath, actual, expected, pp) { + function handleAsymmetricExpected() { + if ( + j$.isAsymmetricEqualityTester_(expected) && + j$.isFunction_(expected.valuesForDiff_) + ) { + var asymmetricResult = expected.valuesForDiff_(actual, pp); + expected = asymmetricResult.self; + actual = asymmetricResult.other; + } + } + + var i; + handleAsymmetricExpected(); + + for (i = 0; i < objectPath.components.length; i++) { + actual = actual[objectPath.components[i]]; + expected = expected[objectPath.components[i]]; + handleAsymmetricExpected(); + } + + return { actual: actual, expected: expected }; + } +}; + +getJasmineRequireObj().MatchersUtil = function(j$) { + // TODO: convert all uses of j$.pp to use the injected pp + + /** + * @class MatchersUtil + * @classdesc Utilities for use in implementing matchers.
+ * _Note:_ Do not construct this directly. Jasmine will construct one and + * pass it to matchers and asymmetric equality testers. + * @hideconstructor + */ + function MatchersUtil(options) { + options = options || {}; + this.customTesters_ = options.customTesters || []; + /** + * Formats a value for use in matcher failure messages and similar contexts, + * taking into account the current set of custom value formatters. + * @function + * @name MatchersUtil#pp + * @since 3.6.0 + * @param {*} value The value to pretty-print + * @return {string} The pretty-printed value + */ + this.pp = options.pp || function() {}; + } + + /** + * Determines whether `haystack` contains `needle`, using the same comparison + * logic as {@link MatchersUtil#equals}. + * @function + * @name MatchersUtil#contains + * @since 2.0.0 + * @param {*} haystack The collection to search + * @param {*} needle The value to search for + * @param [customTesters] An array of custom equality testers + * @returns {boolean} True if `needle` was found in `haystack` + */ + MatchersUtil.prototype.contains = function(haystack, needle, customTesters) { + if (j$.isSet(haystack)) { + return haystack.has(needle); + } + + if ( + Object.prototype.toString.apply(haystack) === '[object Array]' || + (!!haystack && !haystack.indexOf) + ) { + for (var i = 0; i < haystack.length; i++) { + if (this.equals(haystack[i], needle, customTesters)) { + return true; + } + } + return false; + } + + return !!haystack && haystack.indexOf(needle) >= 0; + }; + + MatchersUtil.prototype.buildFailureMessage = function() { + var self = this; + var args = Array.prototype.slice.call(arguments, 0), + matcherName = args[0], + isNot = args[1], + actual = args[2], + expected = args.slice(3), + englishyPredicate = matcherName.replace(/[A-Z]/g, function(s) { + return ' ' + s.toLowerCase(); + }); + + var message = + 'Expected ' + + self.pp(actual) + + (isNot ? ' not ' : ' ') + + englishyPredicate; + + if (expected.length > 0) { + for (var i = 0; i < expected.length; i++) { + if (i > 0) { + message += ','; + } + message += ' ' + self.pp(expected[i]); + } + } + + return message + '.'; + }; + + MatchersUtil.prototype.asymmetricDiff_ = function( + a, + b, + aStack, + bStack, + customTesters, + diffBuilder + ) { + if (j$.isFunction_(b.valuesForDiff_)) { + var values = b.valuesForDiff_(a, this.pp); + this.eq_( + values.other, + values.self, + aStack, + bStack, + customTesters, + diffBuilder + ); + } else { + diffBuilder.recordMismatch(); + } + }; + + MatchersUtil.prototype.asymmetricMatch_ = function( + a, + b, + aStack, + bStack, + customTesters, + diffBuilder + ) { + var asymmetricA = j$.isAsymmetricEqualityTester_(a), + asymmetricB = j$.isAsymmetricEqualityTester_(b), + shim, + result; + + if (asymmetricA === asymmetricB) { + return undefined; + } + + shim = j$.asymmetricEqualityTesterArgCompatShim(this, customTesters); + + if (asymmetricA) { + result = a.asymmetricMatch(b, shim); + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + } + + if (asymmetricB) { + result = b.asymmetricMatch(a, shim); + if (!result) { + this.asymmetricDiff_(a, b, aStack, bStack, customTesters, diffBuilder); + } + return result; + } + }; + + /** + * Determines whether two values are deeply equal to each other. + * @function + * @name MatchersUtil#equals + * @since 2.0.0 + * @param {*} a The first value to compare + * @param {*} b The second value to compare + * @param [customTesters] An array of custom equality testers + * @returns {boolean} True if the values are equal + */ + MatchersUtil.prototype.equals = function( + a, + b, + customTestersOrDiffBuilder, + diffBuilderOrNothing + ) { + var customTesters, diffBuilder; + + if (isDiffBuilder(customTestersOrDiffBuilder)) { + diffBuilder = customTestersOrDiffBuilder; + } else { + customTesters = customTestersOrDiffBuilder; + diffBuilder = diffBuilderOrNothing; + } + + customTesters = customTesters || this.customTesters_; + diffBuilder = diffBuilder || j$.NullDiffBuilder(); + diffBuilder.setRoots(a, b); + + return this.eq_(a, b, [], [], customTesters, diffBuilder); + }; + + // Equality function lovingly adapted from isEqual in + // [Underscore](http://underscorejs.org) + MatchersUtil.prototype.eq_ = function( + a, + b, + aStack, + bStack, + customTesters, + diffBuilder + ) { + var result = true, + self = this, + i; + + var asymmetricResult = this.asymmetricMatch_( + a, + b, + aStack, + bStack, + customTesters, + diffBuilder + ); + if (!j$.util.isUndefined(asymmetricResult)) { + return asymmetricResult; + } + + for (i = 0; i < customTesters.length; i++) { + var customTesterResult = customTesters[i](a, b); + if (!j$.util.isUndefined(customTesterResult)) { + if (!customTesterResult) { + diffBuilder.recordMismatch(); + } + return customTesterResult; + } + } + + if (a instanceof Error && b instanceof Error) { + result = a.message == b.message; + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + } + + // Identical objects are equal. `0 === -0`, but they aren't identical. + // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal). + if (a === b) { + result = a !== 0 || 1 / a == 1 / b; + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + } + // A strict comparison is necessary because `null == undefined`. + if (a === null || b === null) { + result = a === b; + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + } + var className = Object.prototype.toString.call(a); + if (className != Object.prototype.toString.call(b)) { + diffBuilder.recordMismatch(); + return false; + } + switch (className) { + // Strings, numbers, dates, and booleans are compared by value. + case '[object String]': + // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is + // equivalent to `new String("5")`. + result = a == String(b); + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + case '[object Number]': + // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for + // other numeric values. + result = + a != +a ? b != +b : a === 0 && b === 0 ? 1 / a == 1 / b : a == +b; + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + case '[object Date]': + case '[object Boolean]': + // Coerce dates and booleans to numeric primitive values. Dates are compared by their + // millisecond representations. Note that invalid dates with millisecond representations + // of `NaN` are not equivalent. + result = +a == +b; + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + case '[object ArrayBuffer]': + // If we have an instance of ArrayBuffer the Uint8Array ctor + // will be defined as well + return self.eq_( + new Uint8Array(a), // eslint-disable-line compat/compat + new Uint8Array(b), // eslint-disable-line compat/compat + aStack, + bStack, + customTesters, + diffBuilder + ); + // RegExps are compared by their source patterns and flags. + case '[object RegExp]': + return ( + a.source == b.source && + a.global == b.global && + a.multiline == b.multiline && + a.ignoreCase == b.ignoreCase + ); + } + if (typeof a != 'object' || typeof b != 'object') { + diffBuilder.recordMismatch(); + return false; + } + + var aIsDomNode = j$.isDomNode(a); + var bIsDomNode = j$.isDomNode(b); + if (aIsDomNode && bIsDomNode) { + // At first try to use DOM3 method isEqualNode + result = a.isEqualNode(b); + if (!result) { + diffBuilder.recordMismatch(); + } + return result; + } + if (aIsDomNode || bIsDomNode) { + diffBuilder.recordMismatch(); + return false; + } + + var aIsPromise = j$.isPromise(a); + var bIsPromise = j$.isPromise(b); + if (aIsPromise && bIsPromise) { + return a === b; + } + + // Assume equality for cyclic structures. The algorithm for detecting cyclic + // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`. + var length = aStack.length; + while (length--) { + // Linear search. Performance is inversely proportional to the number of + // unique nested structures. + if (aStack[length] == a) { + return bStack[length] == b; + } + } + // Add the first object to the stack of traversed objects. + aStack.push(a); + bStack.push(b); + var size = 0; + // Recursively compare objects and arrays. + // Compare array lengths to determine if a deep comparison is necessary. + if (className == '[object Array]') { + var aLength = a.length; + var bLength = b.length; + + diffBuilder.withPath('length', function() { + if (aLength !== bLength) { + diffBuilder.recordMismatch(); + result = false; + } + }); + + for (i = 0; i < aLength || i < bLength; i++) { + diffBuilder.withPath(i, function() { + if (i >= bLength) { + diffBuilder.recordMismatch( + actualArrayIsLongerFormatter.bind(null, self.pp) + ); + result = false; + } else { + result = + self.eq_( + i < aLength ? a[i] : void 0, + i < bLength ? b[i] : void 0, + aStack, + bStack, + customTesters, + diffBuilder + ) && result; + } + }); + } + if (!result) { + return false; + } + } else if (j$.isMap(a) && j$.isMap(b)) { + if (a.size != b.size) { + diffBuilder.recordMismatch(); + return false; + } + + var keysA = []; + var keysB = []; + a.forEach(function(valueA, keyA) { + keysA.push(keyA); + }); + b.forEach(function(valueB, keyB) { + keysB.push(keyB); + }); + + // For both sets of keys, check they map to equal values in both maps. + // Keep track of corresponding keys (in insertion order) in order to handle asymmetric obj keys. + var mapKeys = [keysA, keysB]; + var cmpKeys = [keysB, keysA]; + var mapIter, mapKey, mapValueA, mapValueB; + var cmpIter, cmpKey; + for (i = 0; result && i < mapKeys.length; i++) { + mapIter = mapKeys[i]; + cmpIter = cmpKeys[i]; + + for (var j = 0; result && j < mapIter.length; j++) { + mapKey = mapIter[j]; + cmpKey = cmpIter[j]; + mapValueA = a.get(mapKey); + + // Only use the cmpKey when one of the keys is asymmetric and the corresponding key matches, + // otherwise explicitly look up the mapKey in the other Map since we want keys with unique + // obj identity (that are otherwise equal) to not match. + if ( + j$.isAsymmetricEqualityTester_(mapKey) || + (j$.isAsymmetricEqualityTester_(cmpKey) && + this.eq_( + mapKey, + cmpKey, + aStack, + bStack, + customTesters, + j$.NullDiffBuilder() + )) + ) { + mapValueB = b.get(cmpKey); + } else { + mapValueB = b.get(mapKey); + } + result = this.eq_( + mapValueA, + mapValueB, + aStack, + bStack, + customTesters, + j$.NullDiffBuilder() + ); + } + } + + if (!result) { + diffBuilder.recordMismatch(); + return false; + } + } else if (j$.isSet(a) && j$.isSet(b)) { + if (a.size != b.size) { + diffBuilder.recordMismatch(); + return false; + } + + var valuesA = []; + a.forEach(function(valueA) { + valuesA.push(valueA); + }); + var valuesB = []; + b.forEach(function(valueB) { + valuesB.push(valueB); + }); + + // For both sets, check they are all contained in the other set + var setPairs = [[valuesA, valuesB], [valuesB, valuesA]]; + var stackPairs = [[aStack, bStack], [bStack, aStack]]; + var baseValues, baseValue, baseStack; + var otherValues, otherValue, otherStack; + var found; + var prevStackSize; + for (i = 0; result && i < setPairs.length; i++) { + baseValues = setPairs[i][0]; + otherValues = setPairs[i][1]; + baseStack = stackPairs[i][0]; + otherStack = stackPairs[i][1]; + // For each value in the base set... + for (var k = 0; result && k < baseValues.length; k++) { + baseValue = baseValues[k]; + found = false; + // ... test that it is present in the other set + for (var l = 0; !found && l < otherValues.length; l++) { + otherValue = otherValues[l]; + prevStackSize = baseStack.length; + // compare by value equality + found = this.eq_( + baseValue, + otherValue, + baseStack, + otherStack, + customTesters, + j$.NullDiffBuilder() + ); + if (!found && prevStackSize !== baseStack.length) { + baseStack.splice(prevStackSize); + otherStack.splice(prevStackSize); + } + } + result = result && found; + } + } + + if (!result) { + diffBuilder.recordMismatch(); + return false; + } + } else if (j$.isURL(a) && j$.isURL(b)) { + // URLs have no enumrable properties, so the default object comparison + // would consider any two URLs to be equal. + return a.toString() === b.toString(); + } else { + // Objects with different constructors are not equivalent, but `Object`s + // or `Array`s from different frames are. + var aCtor = a.constructor, + bCtor = b.constructor; + if ( + aCtor !== bCtor && + isFunction(aCtor) && + isFunction(bCtor) && + a instanceof aCtor && + b instanceof bCtor && + !(aCtor instanceof aCtor && bCtor instanceof bCtor) + ) { + diffBuilder.recordMismatch( + constructorsAreDifferentFormatter.bind(null, this.pp) + ); + return false; + } + } + + // Deep compare objects. + var aKeys = keys(a, className == '[object Array]'), + key; + size = aKeys.length; + + // Ensure that both objects contain the same number of properties before comparing deep equality. + if (keys(b, className == '[object Array]').length !== size) { + diffBuilder.recordMismatch( + objectKeysAreDifferentFormatter.bind(null, this.pp) + ); + return false; + } + + for (i = 0; i < size; i++) { + key = aKeys[i]; + // Deep compare each member + if (!j$.util.has(b, key)) { + diffBuilder.recordMismatch( + objectKeysAreDifferentFormatter.bind(null, this.pp) + ); + result = false; + continue; + } + + diffBuilder.withPath(key, function() { + if ( + !self.eq_(a[key], b[key], aStack, bStack, customTesters, diffBuilder) + ) { + result = false; + } + }); + } + + if (!result) { + return false; + } + + // Remove the first object from the stack of traversed objects. + aStack.pop(); + bStack.pop(); + + return result; + }; + + function keys(obj, isArray) { + var allKeys = Object.keys + ? Object.keys(obj) + : (function(o) { + var keys = []; + for (var key in o) { + if (j$.util.has(o, key)) { + keys.push(key); + } + } + return keys; + })(obj); + + if (!isArray) { + return allKeys; + } + + if (allKeys.length === 0) { + return allKeys; + } + + var extraKeys = []; + for (var i = 0; i < allKeys.length; i++) { + if (!/^[0-9]+$/.test(allKeys[i])) { + extraKeys.push(allKeys[i]); + } + } + + return extraKeys; + } + + function isFunction(obj) { + return typeof obj === 'function'; + } + + function objectKeysAreDifferentFormatter(pp, actual, expected, path) { + var missingProperties = j$.util.objectDifference(expected, actual), + extraProperties = j$.util.objectDifference(actual, expected), + missingPropertiesMessage = formatKeyValuePairs(pp, missingProperties), + extraPropertiesMessage = formatKeyValuePairs(pp, extraProperties), + messages = []; + + if (!path.depth()) { + path = 'object'; + } + + if (missingPropertiesMessage.length) { + messages.push( + 'Expected ' + path + ' to have properties' + missingPropertiesMessage + ); + } + + if (extraPropertiesMessage.length) { + messages.push( + 'Expected ' + path + ' not to have properties' + extraPropertiesMessage + ); + } + + return messages.join('\n'); + } + + function constructorsAreDifferentFormatter(pp, actual, expected, path) { + if (!path.depth()) { + path = 'object'; + } + + return ( + 'Expected ' + + path + + ' to be a kind of ' + + j$.fnNameFor(expected.constructor) + + ', but was ' + + pp(actual) + + '.' + ); + } + + function actualArrayIsLongerFormatter(pp, actual, expected, path) { + return ( + 'Unexpected ' + + path + + (path.depth() ? ' = ' : '') + + pp(actual) + + ' in array.' + ); + } + + function formatKeyValuePairs(pp, obj) { + var formatted = ''; + for (var key in obj) { + formatted += '\n ' + key + ': ' + pp(obj[key]); + } + return formatted; + } + + function isDiffBuilder(obj) { + return obj && typeof obj.recordMismatch === 'function'; + } + + return MatchersUtil; +}; + +/** + * @interface AsymmetricEqualityTester + * @classdesc An asymmetric equality tester is an object that can match multiple + * objects. Examples include jasmine.any() and jasmine.stringMatching(). + * User-defined asymmetric equality testers can also be defined and used in + * expectations. + * @see custom_asymmetric_equality_testers + * @since 2.0.0 + */ +/** + * Determines whether a value matches this tester + * @function + * @name AsymmetricEqualityTester#asymmetricMatch + * @param value {any} The value to test + * @param matchersUtil {MatchersUtil} utilities for testing equality, etc + * @return {Boolean} + */ +/** + * Returns a string representation of this tester to use in matcher failure messages + * @function + * @name AsymmetricEqualityTester#jasmineToString + * @param pp {function} Function that takes a value and returns a pretty-printed representation + * @return {String} + */ + +getJasmineRequireObj().MismatchTree = function(j$) { + /* + To be able to apply custom object formatters at all possible levels of an + object graph, DiffBuilder needs to be able to know not just where the + mismatch occurred but also all ancestors of the mismatched value in both + the expected and actual object graphs. MismatchTree maintains that context + and provides it via the traverse method. + */ + function MismatchTree(path) { + this.path = path || new j$.ObjectPath([]); + this.formatter = undefined; + this.children = []; + this.isMismatch = false; + } + + MismatchTree.prototype.add = function(path, formatter) { + var key, child; + + if (path.depth() === 0) { + this.formatter = formatter; + this.isMismatch = true; + } else { + key = path.components[0]; + path = path.shift(); + child = this.child(key); + + if (!child) { + child = new MismatchTree(this.path.add(key)); + this.children.push(child); + } + + child.add(path, formatter); + } + }; + + MismatchTree.prototype.traverse = function(visit) { + var i, + hasChildren = this.children.length > 0; + + if (this.isMismatch || hasChildren) { + if (visit(this.path, !hasChildren, this.formatter)) { + for (i = 0; i < this.children.length; i++) { + this.children[i].traverse(visit); + } + } + } + }; + + MismatchTree.prototype.child = function(key) { + var i, pathEls; + + for (i = 0; i < this.children.length; i++) { + pathEls = this.children[i].path.components; + if (pathEls[pathEls.length - 1] === key) { + return this.children[i]; + } + } + }; + + return MismatchTree; +}; + +getJasmineRequireObj().nothing = function() { + /** + * {@link expect} nothing explicitly. + * @function + * @name matchers#nothing + * @since 2.8.0 + * @example + * expect().nothing(); + */ + function nothing() { + return { + compare: function() { + return { + pass: true + }; + } + }; + } + + return nothing; +}; + +getJasmineRequireObj().NullDiffBuilder = function(j$) { + return function() { + return { + withPath: function(_, block) { + block(); + }, + setRoots: function() {}, + recordMismatch: function() {} + }; + }; +}; + +getJasmineRequireObj().ObjectPath = function(j$) { + function ObjectPath(components) { + this.components = components || []; + } + + ObjectPath.prototype.toString = function() { + if (this.components.length) { + return '$' + map(this.components, formatPropertyAccess).join(''); + } else { + return ''; + } + }; + + ObjectPath.prototype.add = function(component) { + return new ObjectPath(this.components.concat([component])); + }; + + ObjectPath.prototype.shift = function() { + return new ObjectPath(this.components.slice(1)); + }; + + ObjectPath.prototype.depth = function() { + return this.components.length; + }; + + function formatPropertyAccess(prop) { + if (typeof prop === 'number') { + return '[' + prop + ']'; + } + + if (isValidIdentifier(prop)) { + return '.' + prop; + } + + return "['" + prop + "']"; + } + + function map(array, fn) { + var results = []; + for (var i = 0; i < array.length; i++) { + results.push(fn(array[i])); + } + return results; + } + + function isValidIdentifier(string) { + return /^[A-Za-z\$_][A-Za-z0-9\$_]*$/.test(string); + } + + return ObjectPath; +}; + +getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) { + var availableMatchers = [ + 'toBePending', + 'toBeResolved', + 'toBeRejected', + 'toBeResolvedTo', + 'toBeRejectedWith', + 'toBeRejectedWithError' + ], + matchers = {}; + + for (var i = 0; i < availableMatchers.length; i++) { + var name = availableMatchers[i]; + matchers[name] = jRequire[name](j$); + } + + return matchers; +}; + +getJasmineRequireObj().toBe = function(j$) { + /** + * {@link expect} the actual value to be `===` to the expected value. + * @function + * @name matchers#toBe + * @since 1.3.0 + * @param {Object} expected - The expected value to compare against. + * @example + * expect(thing).toBe(realThing); + */ + function toBe(matchersUtil) { + var tip = + ' Tip: To check for deep equality, use .toEqual() instead of .toBe().'; + + return { + compare: function(actual, expected) { + var result = { + pass: actual === expected + }; + + if (typeof expected === 'object') { + result.message = + matchersUtil.buildFailureMessage( + 'toBe', + result.pass, + actual, + expected + ) + tip; + } + + return result; + } + }; + } + + return toBe; +}; + +getJasmineRequireObj().toBeCloseTo = function() { + /** + * {@link expect} the actual value to be within a specified precision of the expected value. + * @function + * @name matchers#toBeCloseTo + * @since 1.3.0 + * @param {Object} expected - The expected value to compare against. + * @param {Number} [precision=2] - The number of decimal points to check. + * @example + * expect(number).toBeCloseTo(42.2, 3); + */ + function toBeCloseTo() { + return { + compare: function(actual, expected, precision) { + if (precision !== 0) { + precision = precision || 2; + } + + if (expected === null || actual === null) { + throw new Error( + 'Cannot use toBeCloseTo with null. Arguments evaluated to: ' + + 'expect(' + + actual + + ').toBeCloseTo(' + + expected + + ').' + ); + } + + var pow = Math.pow(10, precision + 1); + var delta = Math.abs(expected - actual); + var maxDelta = Math.pow(10, -precision) / 2; + + return { + pass: Math.round(delta * pow) <= maxDelta * pow + }; + } + }; + } + + return toBeCloseTo; +}; + +getJasmineRequireObj().toBeDefined = function() { + /** + * {@link expect} the actual value to be defined. (Not `undefined`) + * @function + * @name matchers#toBeDefined + * @since 1.3.0 + * @example + * expect(result).toBeDefined(); + */ + function toBeDefined() { + return { + compare: function(actual) { + return { + pass: void 0 !== actual + }; + } + }; + } + + return toBeDefined; +}; + +getJasmineRequireObj().toBeFalse = function() { + /** + * {@link expect} the actual value to be `false`. + * @function + * @name matchers#toBeFalse + * @since 3.5.0 + * @example + * expect(result).toBeFalse(); + */ + function toBeFalse() { + return { + compare: function(actual) { + return { + pass: actual === false + }; + } + }; + } + + return toBeFalse; +}; + +getJasmineRequireObj().toBeFalsy = function() { + /** + * {@link expect} the actual value to be falsy + * @function + * @name matchers#toBeFalsy + * @since 2.0.0 + * @example + * expect(result).toBeFalsy(); + */ + function toBeFalsy() { + return { + compare: function(actual) { + return { + pass: !actual + }; + } + }; + } + + return toBeFalsy; +}; + +getJasmineRequireObj().toBeGreaterThan = function() { + /** + * {@link expect} the actual value to be greater than the expected value. + * @function + * @name matchers#toBeGreaterThan + * @since 2.0.0 + * @param {Number} expected - The value to compare against. + * @example + * expect(result).toBeGreaterThan(3); + */ + function toBeGreaterThan() { + return { + compare: function(actual, expected) { + return { + pass: actual > expected + }; + } + }; + } + + return toBeGreaterThan; +}; + +getJasmineRequireObj().toBeGreaterThanOrEqual = function() { + /** + * {@link expect} the actual value to be greater than or equal to the expected value. + * @function + * @name matchers#toBeGreaterThanOrEqual + * @since 2.0.0 + * @param {Number} expected - The expected value to compare against. + * @example + * expect(result).toBeGreaterThanOrEqual(25); + */ + function toBeGreaterThanOrEqual() { + return { + compare: function(actual, expected) { + return { + pass: actual >= expected + }; + } + }; + } + + return toBeGreaterThanOrEqual; +}; + +getJasmineRequireObj().toBeInstanceOf = function(j$) { + var usageError = j$.formatErrorMsg( + '', + 'expect(value).toBeInstanceOf()' + ); + + /** + * {@link expect} the actual to be an instance of the expected class + * @function + * @name matchers#toBeInstanceOf + * @since 3.5.0 + * @param {Object} expected - The class or constructor function to check for + * @example + * expect('foo').toBeInstanceOf(String); + * expect(3).toBeInstanceOf(Number); + * expect(new Error()).toBeInstanceOf(Error); + */ + function toBeInstanceOf(matchersUtil) { + return { + compare: function(actual, expected) { + var actualType = + actual && actual.constructor + ? j$.fnNameFor(actual.constructor) + : matchersUtil.pp(actual), + expectedType = expected + ? j$.fnNameFor(expected) + : matchersUtil.pp(expected), + expectedMatcher, + pass; + + try { + expectedMatcher = new j$.Any(expected); + pass = expectedMatcher.asymmetricMatch(actual); + } catch (error) { + throw new Error( + usageError('Expected value is not a constructor function') + ); + } + + if (pass) { + return { + pass: true, + message: + 'Expected instance of ' + + actualType + + ' not to be an instance of ' + + expectedType + }; + } else { + return { + pass: false, + message: + 'Expected instance of ' + + actualType + + ' to be an instance of ' + + expectedType + }; + } + } + }; + } + + return toBeInstanceOf; +}; + +getJasmineRequireObj().toBeLessThan = function() { + /** + * {@link expect} the actual value to be less than the expected value. + * @function + * @name matchers#toBeLessThan + * @since 2.0.0 + * @param {Number} expected - The expected value to compare against. + * @example + * expect(result).toBeLessThan(0); + */ + function toBeLessThan() { + return { + compare: function(actual, expected) { + return { + pass: actual < expected + }; + } + }; + } + + return toBeLessThan; +}; + +getJasmineRequireObj().toBeLessThanOrEqual = function() { + /** + * {@link expect} the actual value to be less than or equal to the expected value. + * @function + * @name matchers#toBeLessThanOrEqual + * @since 2.0.0 + * @param {Number} expected - The expected value to compare against. + * @example + * expect(result).toBeLessThanOrEqual(123); + */ + function toBeLessThanOrEqual() { + return { + compare: function(actual, expected) { + return { + pass: actual <= expected + }; + } + }; + } + + return toBeLessThanOrEqual; +}; + +getJasmineRequireObj().toBeNaN = function(j$) { + /** + * {@link expect} the actual value to be `NaN` (Not a Number). + * @function + * @name matchers#toBeNaN + * @since 1.3.0 + * @example + * expect(thing).toBeNaN(); + */ + function toBeNaN(matchersUtil) { + return { + compare: function(actual) { + var result = { + pass: actual !== actual + }; + + if (result.pass) { + result.message = 'Expected actual not to be NaN.'; + } else { + result.message = function() { + return 'Expected ' + matchersUtil.pp(actual) + ' to be NaN.'; + }; + } + + return result; + } + }; + } + + return toBeNaN; +}; + +getJasmineRequireObj().toBeNegativeInfinity = function(j$) { + /** + * {@link expect} the actual value to be `-Infinity` (-infinity). + * @function + * @name matchers#toBeNegativeInfinity + * @since 2.6.0 + * @example + * expect(thing).toBeNegativeInfinity(); + */ + function toBeNegativeInfinity(matchersUtil) { + return { + compare: function(actual) { + var result = { + pass: actual === Number.NEGATIVE_INFINITY + }; + + if (result.pass) { + result.message = 'Expected actual not to be -Infinity.'; + } else { + result.message = function() { + return 'Expected ' + matchersUtil.pp(actual) + ' to be -Infinity.'; + }; + } + + return result; + } + }; + } + + return toBeNegativeInfinity; +}; + +getJasmineRequireObj().toBeNull = function() { + /** + * {@link expect} the actual value to be `null`. + * @function + * @name matchers#toBeNull + * @since 1.3.0 + * @example + * expect(result).toBeNull(); + */ + function toBeNull() { + return { + compare: function(actual) { + return { + pass: actual === null + }; + } + }; + } + + return toBeNull; +}; + +getJasmineRequireObj().toBePositiveInfinity = function(j$) { + /** + * {@link expect} the actual value to be `Infinity` (infinity). + * @function + * @name matchers#toBePositiveInfinity + * @since 2.6.0 + * @example + * expect(thing).toBePositiveInfinity(); + */ + function toBePositiveInfinity(matchersUtil) { + return { + compare: function(actual) { + var result = { + pass: actual === Number.POSITIVE_INFINITY + }; + + if (result.pass) { + result.message = 'Expected actual not to be Infinity.'; + } else { + result.message = function() { + return 'Expected ' + matchersUtil.pp(actual) + ' to be Infinity.'; + }; + } + + return result; + } + }; + } + + return toBePositiveInfinity; +}; + +getJasmineRequireObj().toBeTrue = function() { + /** + * {@link expect} the actual value to be `true`. + * @function + * @name matchers#toBeTrue + * @since 3.5.0 + * @example + * expect(result).toBeTrue(); + */ + function toBeTrue() { + return { + compare: function(actual) { + return { + pass: actual === true + }; + } + }; + } + + return toBeTrue; +}; + +getJasmineRequireObj().toBeTruthy = function() { + /** + * {@link expect} the actual value to be truthy. + * @function + * @name matchers#toBeTruthy + * @since 2.0.0 + * @example + * expect(thing).toBeTruthy(); + */ + function toBeTruthy() { + return { + compare: function(actual) { + return { + pass: !!actual + }; + } + }; + } + + return toBeTruthy; +}; + +getJasmineRequireObj().toBeUndefined = function() { + /** + * {@link expect} the actual value to be `undefined`. + * @function + * @name matchers#toBeUndefined + * @since 1.3.0 + * @example + * expect(result).toBeUndefined(): + */ + function toBeUndefined() { + return { + compare: function(actual) { + return { + pass: void 0 === actual + }; + } + }; + } + + return toBeUndefined; +}; + +getJasmineRequireObj().toContain = function() { + /** + * {@link expect} the actual value to contain a specific value. + * @function + * @name matchers#toContain + * @since 2.0.0 + * @param {Object} expected - The value to look for. + * @example + * expect(array).toContain(anElement); + * expect(string).toContain(substring); + */ + function toContain(matchersUtil) { + return { + compare: function(actual, expected) { + return { + pass: matchersUtil.contains(actual, expected) + }; + } + }; + } + + return toContain; +}; + +getJasmineRequireObj().toEqual = function(j$) { + /** + * {@link expect} the actual value to be equal to the expected, using deep equality comparison. + * @function + * @name matchers#toEqual + * @since 1.3.0 + * @param {Object} expected - Expected value + * @example + * expect(bigObject).toEqual({"foo": ['bar', 'baz']}); + */ + function toEqual(matchersUtil) { + return { + compare: function(actual, expected) { + var result = { + pass: false + }, + diffBuilder = j$.DiffBuilder({ prettyPrinter: matchersUtil.pp }); + + result.pass = matchersUtil.equals(actual, expected, diffBuilder); + + // TODO: only set error message if test fails + result.message = diffBuilder.getMessage(); + + return result; + } + }; + } + + return toEqual; +}; + +getJasmineRequireObj().toHaveBeenCalled = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toHaveBeenCalled()' + ); + + /** + * {@link expect} the actual (a {@link Spy}) to have been called. + * @function + * @name matchers#toHaveBeenCalled + * @since 1.3.0 + * @example + * expect(mySpy).toHaveBeenCalled(); + * expect(mySpy).not.toHaveBeenCalled(); + */ + function toHaveBeenCalled(matchersUtil) { + return { + compare: function(actual) { + var result = {}; + + if (!j$.isSpy(actual)) { + throw new Error( + getErrorMsg( + 'Expected a spy, but got ' + matchersUtil.pp(actual) + '.' + ) + ); + } + + if (arguments.length > 1) { + throw new Error( + getErrorMsg('Does not take arguments, use toHaveBeenCalledWith') + ); + } + + result.pass = actual.calls.any(); + + result.message = result.pass + ? 'Expected spy ' + actual.and.identity + ' not to have been called.' + : 'Expected spy ' + actual.and.identity + ' to have been called.'; + + return result; + } + }; + } + + return toHaveBeenCalled; +}; + +getJasmineRequireObj().toHaveBeenCalledBefore = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toHaveBeenCalledBefore()' + ); + + /** + * {@link expect} the actual value (a {@link Spy}) to have been called before another {@link Spy}. + * @function + * @name matchers#toHaveBeenCalledBefore + * @since 2.6.0 + * @param {Spy} expected - {@link Spy} that should have been called after the `actual` {@link Spy}. + * @example + * expect(mySpy).toHaveBeenCalledBefore(otherSpy); + */ + function toHaveBeenCalledBefore(matchersUtil) { + return { + compare: function(firstSpy, latterSpy) { + if (!j$.isSpy(firstSpy)) { + throw new Error( + getErrorMsg( + 'Expected a spy, but got ' + matchersUtil.pp(firstSpy) + '.' + ) + ); + } + if (!j$.isSpy(latterSpy)) { + throw new Error( + getErrorMsg( + 'Expected a spy, but got ' + matchersUtil.pp(latterSpy) + '.' + ) + ); + } + + var result = { pass: false }; + + if (!firstSpy.calls.count()) { + result.message = + 'Expected spy ' + firstSpy.and.identity + ' to have been called.'; + return result; + } + if (!latterSpy.calls.count()) { + result.message = + 'Expected spy ' + latterSpy.and.identity + ' to have been called.'; + return result; + } + + var latest1stSpyCall = firstSpy.calls.mostRecent().invocationOrder; + var first2ndSpyCall = latterSpy.calls.first().invocationOrder; + + result.pass = latest1stSpyCall < first2ndSpyCall; + + if (result.pass) { + result.message = + 'Expected spy ' + + firstSpy.and.identity + + ' to not have been called before spy ' + + latterSpy.and.identity + + ', but it was'; + } else { + var first1stSpyCall = firstSpy.calls.first().invocationOrder; + var latest2ndSpyCall = latterSpy.calls.mostRecent().invocationOrder; + + if (first1stSpyCall < first2ndSpyCall) { + result.message = + 'Expected latest call to spy ' + + firstSpy.and.identity + + ' to have been called before first call to spy ' + + latterSpy.and.identity + + ' (no interleaved calls)'; + } else if (latest2ndSpyCall > latest1stSpyCall) { + result.message = + 'Expected first call to spy ' + + latterSpy.and.identity + + ' to have been called after latest call to spy ' + + firstSpy.and.identity + + ' (no interleaved calls)'; + } else { + result.message = + 'Expected spy ' + + firstSpy.and.identity + + ' to have been called before spy ' + + latterSpy.and.identity; + } + } + + return result; + } + }; + } + + return toHaveBeenCalledBefore; +}; + +getJasmineRequireObj().toHaveBeenCalledOnceWith = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toHaveBeenCalledOnceWith(...arguments)' + ); + + /** + * {@link expect} the actual (a {@link Spy}) to have been called exactly once, and exactly with the particular arguments. + * @function + * @name matchers#toHaveBeenCalledOnceWith + * @since 3.6.0 + * @param {...Object} - The arguments to look for + * @example + * expect(mySpy).toHaveBeenCalledOnceWith('foo', 'bar', 2); + */ + function toHaveBeenCalledOnceWith(util) { + return { + compare: function() { + var args = Array.prototype.slice.call(arguments, 0), + actual = args[0], + expectedArgs = args.slice(1); + + if (!j$.isSpy(actual)) { + throw new Error( + getErrorMsg('Expected a spy, but got ' + util.pp(actual) + '.') + ); + } + + var prettyPrintedCalls = actual.calls + .allArgs() + .map(function(argsForCall) { + return ' ' + util.pp(argsForCall); + }); + + if ( + actual.calls.count() === 1 && + util.contains(actual.calls.allArgs(), expectedArgs) + ) { + return { + pass: true, + message: + 'Expected spy ' + + actual.and.identity + + ' to have been called 0 times, multiple times, or once, but with arguments different from:\n' + + ' ' + + util.pp(expectedArgs) + + '\n' + + 'But the actual call was:\n' + + prettyPrintedCalls.join(',\n') + + '.\n\n' + }; + } + + function getDiffs() { + return actual.calls.allArgs().map(function(argsForCall, callIx) { + var diffBuilder = new j$.DiffBuilder(); + util.equals(argsForCall, expectedArgs, diffBuilder); + return diffBuilder.getMessage(); + }); + } + + function butString() { + switch (actual.calls.count()) { + case 0: + return 'But it was never called.\n\n'; + case 1: + return ( + 'But the actual call was:\n' + + prettyPrintedCalls.join(',\n') + + '.\n' + + getDiffs().join('\n') + + '\n\n' + ); + default: + return ( + 'But the actual calls were:\n' + + prettyPrintedCalls.join(',\n') + + '.\n\n' + ); + } + } + + return { + pass: false, + message: + 'Expected spy ' + + actual.and.identity + + ' to have been called only once, and with given args:\n' + + ' ' + + util.pp(expectedArgs) + + '\n' + + butString() + }; + } + }; + } + + return toHaveBeenCalledOnceWith; +}; + +getJasmineRequireObj().toHaveBeenCalledTimes = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toHaveBeenCalledTimes()' + ); + + /** + * {@link expect} the actual (a {@link Spy}) to have been called the specified number of times. + * @function + * @name matchers#toHaveBeenCalledTimes + * @since 2.4.0 + * @param {Number} expected - The number of invocations to look for. + * @example + * expect(mySpy).toHaveBeenCalledTimes(3); + */ + function toHaveBeenCalledTimes(matchersUtil) { + return { + compare: function(actual, expected) { + if (!j$.isSpy(actual)) { + throw new Error( + getErrorMsg( + 'Expected a spy, but got ' + matchersUtil.pp(actual) + '.' + ) + ); + } + + var args = Array.prototype.slice.call(arguments, 0), + result = { pass: false }; + + if (!j$.isNumber_(expected)) { + throw new Error( + getErrorMsg( + 'The expected times failed is a required argument and must be a number.' + ) + ); + } + + actual = args[0]; + var calls = actual.calls.count(); + var timesMessage = expected === 1 ? 'once' : expected + ' times'; + result.pass = calls === expected; + result.message = result.pass + ? 'Expected spy ' + + actual.and.identity + + ' not to have been called ' + + timesMessage + + '. It was called ' + + calls + + ' times.' + : 'Expected spy ' + + actual.and.identity + + ' to have been called ' + + timesMessage + + '. It was called ' + + calls + + ' times.'; + return result; + } + }; + } + + return toHaveBeenCalledTimes; +}; + +getJasmineRequireObj().toHaveBeenCalledWith = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toHaveBeenCalledWith(...arguments)' + ); + + /** + * {@link expect} the actual (a {@link Spy}) to have been called with particular arguments at least once. + * @function + * @name matchers#toHaveBeenCalledWith + * @since 1.3.0 + * @param {...Object} - The arguments to look for + * @example + * expect(mySpy).toHaveBeenCalledWith('foo', 'bar', 2); + */ + function toHaveBeenCalledWith(matchersUtil) { + return { + compare: function() { + var args = Array.prototype.slice.call(arguments, 0), + actual = args[0], + expectedArgs = args.slice(1), + result = { pass: false }; + + if (!j$.isSpy(actual)) { + throw new Error( + getErrorMsg( + 'Expected a spy, but got ' + matchersUtil.pp(actual) + '.' + ) + ); + } + + if (!actual.calls.any()) { + result.message = function() { + return ( + 'Expected spy ' + + actual.and.identity + + ' to have been called with:\n' + + ' ' + + matchersUtil.pp(expectedArgs) + + '\nbut it was never called.' + ); + }; + return result; + } + + if (matchersUtil.contains(actual.calls.allArgs(), expectedArgs)) { + result.pass = true; + result.message = function() { + return ( + 'Expected spy ' + + actual.and.identity + + ' not to have been called with:\n' + + ' ' + + matchersUtil.pp(expectedArgs) + + '\nbut it was.' + ); + }; + } else { + result.message = function() { + var prettyPrintedCalls = actual.calls + .allArgs() + .map(function(argsForCall) { + return ' ' + matchersUtil.pp(argsForCall); + }); + + var diffs = actual.calls + .allArgs() + .map(function(argsForCall, callIx) { + var diffBuilder = new j$.DiffBuilder(); + matchersUtil.equals(argsForCall, expectedArgs, diffBuilder); + return ( + 'Call ' + + callIx + + ':\n' + + diffBuilder.getMessage().replace(/^/gm, ' ') + ); + }); + + return ( + 'Expected spy ' + + actual.and.identity + + ' to have been called with:\n' + + ' ' + + matchersUtil.pp(expectedArgs) + + '\n' + + '' + + 'but actual calls were:\n' + + prettyPrintedCalls.join(',\n') + + '.\n\n' + + diffs.join('\n') + ); + }; + } + + return result; + } + }; + } + + return toHaveBeenCalledWith; +}; + +getJasmineRequireObj().toHaveClass = function(j$) { + /** + * {@link expect} the actual value to be a DOM element that has the expected class + * @function + * @name matchers#toHaveClass + * @since 3.0.0 + * @param {Object} expected - The class name to test for + * @example + * var el = document.createElement('div'); + * el.className = 'foo bar baz'; + * expect(el).toHaveClass('bar'); + */ + function toHaveClass(matchersUtil) { + return { + compare: function(actual, expected) { + if (!isElement(actual)) { + throw new Error(matchersUtil.pp(actual) + ' is not a DOM element'); + } + + return { + pass: actual.classList.contains(expected) + }; + } + }; + } + + function isElement(maybeEl) { + return ( + maybeEl && maybeEl.classList && j$.isFunction_(maybeEl.classList.contains) + ); + } + + return toHaveClass; +}; + +getJasmineRequireObj().toHaveSize = function(j$) { + /** + * {@link expect} the actual size to be equal to the expected, using array-like length or object keys size. + * @function + * @name matchers#toHaveSize + * @since 3.6.0 + * @param {Object} expected - Expected size + * @example + * array = [1,2]; + * expect(array).toHaveSize(2); + */ + function toHaveSize() { + return { + compare: function(actual, expected) { + var result = { + pass: false + }; + + if ( + j$.isA_('WeakSet', actual) || + j$.isWeakMap(actual) || + j$.isDataView(actual) + ) { + throw new Error('Cannot get size of ' + actual + '.'); + } + + if (j$.isSet(actual) || j$.isMap(actual)) { + result.pass = actual.size === expected; + } else if (isLength(actual.length)) { + result.pass = actual.length === expected; + } else { + result.pass = Object.keys(actual).length === expected; + } + + return result; + } + }; + } + + var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; // eslint-disable-line compat/compat + function isLength(value) { + return ( + typeof value == 'number' && + value > -1 && + value % 1 === 0 && + value <= MAX_SAFE_INTEGER + ); + } + + return toHaveSize; +}; + +getJasmineRequireObj().toMatch = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect().toMatch( || )' + ); + + /** + * {@link expect} the actual value to match a regular expression + * @function + * @name matchers#toMatch + * @since 1.3.0 + * @param {RegExp|String} expected - Value to look for in the string. + * @example + * expect("my string").toMatch(/string$/); + * expect("other string").toMatch("her"); + */ + function toMatch() { + return { + compare: function(actual, expected) { + if (!j$.isString_(expected) && !j$.isA_('RegExp', expected)) { + throw new Error(getErrorMsg('Expected is not a String or a RegExp')); + } + + var regexp = new RegExp(expected); + + return { + pass: regexp.test(actual) + }; + } + }; + } + + return toMatch; +}; + +getJasmineRequireObj().toThrow = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect(function() {}).toThrow()' + ); + + /** + * {@link expect} a function to `throw` something. + * @function + * @name matchers#toThrow + * @since 2.0.0 + * @param {Object} [expected] - Value that should be thrown. If not provided, simply the fact that something was thrown will be checked. + * @example + * expect(function() { return 'things'; }).toThrow('foo'); + * expect(function() { return 'stuff'; }).toThrow(); + */ + function toThrow(matchersUtil) { + return { + compare: function(actual, expected) { + var result = { pass: false }, + threw = false, + thrown; + + if (typeof actual != 'function') { + throw new Error(getErrorMsg('Actual is not a Function')); + } + + try { + actual(); + } catch (e) { + threw = true; + thrown = e; + } + + if (!threw) { + result.message = 'Expected function to throw an exception.'; + return result; + } + + if (arguments.length == 1) { + result.pass = true; + result.message = function() { + return ( + 'Expected function not to throw, but it threw ' + + matchersUtil.pp(thrown) + + '.' + ); + }; + + return result; + } + + if (matchersUtil.equals(thrown, expected)) { + result.pass = true; + result.message = function() { + return ( + 'Expected function not to throw ' + + matchersUtil.pp(expected) + + '.' + ); + }; + } else { + result.message = function() { + return ( + 'Expected function to throw ' + + matchersUtil.pp(expected) + + ', but it threw ' + + matchersUtil.pp(thrown) + + '.' + ); + }; + } + + return result; + } + }; + } + + return toThrow; +}; + +getJasmineRequireObj().toThrowError = function(j$) { + var getErrorMsg = j$.formatErrorMsg( + '', + 'expect(function() {}).toThrowError(, )' + ); + + /** + * {@link expect} a function to `throw` an `Error`. + * @function + * @name matchers#toThrowError + * @since 2.0.0 + * @param {Error} [expected] - `Error` constructor the object that was thrown needs to be an instance of. If not provided, `Error` will be used. + * @param {RegExp|String} [message] - The message that should be set on the thrown `Error` + * @example + * expect(function() { return 'things'; }).toThrowError(MyCustomError, 'message'); + * expect(function() { return 'things'; }).toThrowError(MyCustomError, /bar/); + * expect(function() { return 'stuff'; }).toThrowError(MyCustomError); + * expect(function() { return 'other'; }).toThrowError(/foo/); + * expect(function() { return 'other'; }).toThrowError(); + */ + function toThrowError(matchersUtil) { + return { + compare: function(actual) { + var errorMatcher = getMatcher.apply(null, arguments), + thrown; + + if (typeof actual != 'function') { + throw new Error(getErrorMsg('Actual is not a Function')); + } + + try { + actual(); + return fail('Expected function to throw an Error.'); + } catch (e) { + thrown = e; + } + + if (!j$.isError_(thrown)) { + return fail(function() { + return ( + 'Expected function to throw an Error, but it threw ' + + matchersUtil.pp(thrown) + + '.' + ); + }); + } + + return errorMatcher.match(thrown); + } + }; + + function getMatcher() { + var expected, errorType; + + if (arguments[2]) { + errorType = arguments[1]; + expected = arguments[2]; + if (!isAnErrorType(errorType)) { + throw new Error(getErrorMsg('Expected error type is not an Error.')); + } + + return exactMatcher(expected, errorType); + } else if (arguments[1]) { + expected = arguments[1]; + + if (isAnErrorType(arguments[1])) { + return exactMatcher(null, arguments[1]); + } else { + return exactMatcher(arguments[1], null); + } + } else { + return anyMatcher(); + } + } + + function anyMatcher() { + return { + match: function(error) { + return pass( + 'Expected function not to throw an Error, but it threw ' + + j$.fnNameFor(error) + + '.' + ); + } + }; + } + + function exactMatcher(expected, errorType) { + if (expected && !isStringOrRegExp(expected)) { + if (errorType) { + throw new Error( + getErrorMsg('Expected error message is not a string or RegExp.') + ); + } else { + throw new Error( + getErrorMsg('Expected is not an Error, string, or RegExp.') + ); + } + } + + function messageMatch(message) { + if (typeof expected == 'string') { + return expected == message; + } else { + return expected.test(message); + } + } + + var errorTypeDescription = errorType + ? j$.fnNameFor(errorType) + : 'an exception'; + + function thrownDescription(thrown) { + var thrownName = errorType + ? j$.fnNameFor(thrown.constructor) + : 'an exception', + thrownMessage = ''; + + if (expected) { + thrownMessage = ' with message ' + matchersUtil.pp(thrown.message); + } + + return thrownName + thrownMessage; + } + + function messageDescription() { + if (expected === null) { + return ''; + } else if (expected instanceof RegExp) { + return ' with a message matching ' + matchersUtil.pp(expected); + } else { + return ' with message ' + matchersUtil.pp(expected); + } + } + + function matches(error) { + return ( + (errorType === null || error instanceof errorType) && + (expected === null || messageMatch(error.message)) + ); + } + + return { + match: function(thrown) { + if (matches(thrown)) { + return pass(function() { + return ( + 'Expected function not to throw ' + + errorTypeDescription + + messageDescription() + + '.' + ); + }); + } else { + return fail(function() { + return ( + 'Expected function to throw ' + + errorTypeDescription + + messageDescription() + + ', but it threw ' + + thrownDescription(thrown) + + '.' + ); + }); + } + } + }; + } + + function isStringOrRegExp(potential) { + return potential instanceof RegExp || typeof potential == 'string'; + } + + function isAnErrorType(type) { + if (typeof type !== 'function') { + return false; + } + + var Surrogate = function() {}; + Surrogate.prototype = type.prototype; + return j$.isError_(new Surrogate()); + } + } + + function pass(message) { + return { + pass: true, + message: message + }; + } + + function fail(message) { + return { + pass: false, + message: message + }; + } + + return toThrowError; +}; + +getJasmineRequireObj().toThrowMatching = function(j$) { + var usageError = j$.formatErrorMsg( + '', + 'expect(function() {}).toThrowMatching()' + ); + + /** + * {@link expect} a function to `throw` something matching a predicate. + * @function + * @name matchers#toThrowMatching + * @since 3.0.0 + * @param {Function} predicate - A function that takes the thrown exception as its parameter and returns true if it matches. + * @example + * expect(function() { throw new Error('nope'); }).toThrowMatching(function(thrown) { return thrown.message === 'nope'; }); + */ + function toThrowMatching(matchersUtil) { + return { + compare: function(actual, predicate) { + var thrown; + + if (typeof actual !== 'function') { + throw new Error(usageError('Actual is not a Function')); + } + + if (typeof predicate !== 'function') { + throw new Error(usageError('Predicate is not a Function')); + } + + try { + actual(); + return fail('Expected function to throw an exception.'); + } catch (e) { + thrown = e; + } + + if (predicate(thrown)) { + return pass( + 'Expected function not to throw an exception matching a predicate.' + ); + } else { + return fail(function() { + return ( + 'Expected function to throw an exception matching a predicate, ' + + 'but it threw ' + + thrownDescription(thrown) + + '.' + ); + }); + } + } + }; + + function thrownDescription(thrown) { + if (thrown && thrown.constructor) { + return ( + j$.fnNameFor(thrown.constructor) + + ' with message ' + + matchersUtil.pp(thrown.message) + ); + } else { + return matchersUtil.pp(thrown); + } + } + } + + function pass(message) { + return { + pass: true, + message: message + }; + } + + function fail(message) { + return { + pass: false, + message: message + }; + } + + return toThrowMatching; +}; + +getJasmineRequireObj().MockDate = function() { + function MockDate(global) { + var self = this; + var currentTime = 0; + + if (!global || !global.Date) { + self.install = function() {}; + self.tick = function() {}; + self.uninstall = function() {}; + return self; + } + + var GlobalDate = global.Date; + + self.install = function(mockDate) { + if (mockDate instanceof GlobalDate) { + currentTime = mockDate.getTime(); + } else { + currentTime = new GlobalDate().getTime(); + } + + global.Date = FakeDate; + }; + + self.tick = function(millis) { + millis = millis || 0; + currentTime = currentTime + millis; + }; + + self.uninstall = function() { + currentTime = 0; + global.Date = GlobalDate; + }; + + createDateProperties(); + + return self; + + function FakeDate() { + switch (arguments.length) { + case 0: + return new GlobalDate(currentTime); + case 1: + return new GlobalDate(arguments[0]); + case 2: + return new GlobalDate(arguments[0], arguments[1]); + case 3: + return new GlobalDate(arguments[0], arguments[1], arguments[2]); + case 4: + return new GlobalDate( + arguments[0], + arguments[1], + arguments[2], + arguments[3] + ); + case 5: + return new GlobalDate( + arguments[0], + arguments[1], + arguments[2], + arguments[3], + arguments[4] + ); + case 6: + return new GlobalDate( + arguments[0], + arguments[1], + arguments[2], + arguments[3], + arguments[4], + arguments[5] + ); + default: + return new GlobalDate( + arguments[0], + arguments[1], + arguments[2], + arguments[3], + arguments[4], + arguments[5], + arguments[6] + ); + } + } + + function createDateProperties() { + FakeDate.prototype = GlobalDate.prototype; + + FakeDate.now = function() { + if (GlobalDate.now) { + return currentTime; + } else { + throw new Error('Browser does not support Date.now()'); + } + }; + + FakeDate.toSource = GlobalDate.toSource; + FakeDate.toString = GlobalDate.toString; + FakeDate.parse = GlobalDate.parse; + FakeDate.UTC = GlobalDate.UTC; + } + } + + return MockDate; +}; + +getJasmineRequireObj().makePrettyPrinter = function(j$) { + function SinglePrettyPrintRun(customObjectFormatters, pp) { + this.customObjectFormatters_ = customObjectFormatters; + this.ppNestLevel_ = 0; + this.seen = []; + this.length = 0; + this.stringParts = []; + this.pp_ = pp; + } + + function hasCustomToString(value) { + // value.toString !== Object.prototype.toString if value has no custom toString but is from another context (e.g. + // iframe, web worker) + try { + return ( + j$.isFunction_(value.toString) && + value.toString !== Object.prototype.toString && + value.toString() !== Object.prototype.toString.call(value) + ); + } catch (e) { + // The custom toString() threw. + return true; + } + } + + SinglePrettyPrintRun.prototype.format = function(value) { + this.ppNestLevel_++; + try { + var customFormatResult = this.applyCustomFormatters_(value); + + if (customFormatResult) { + this.emitScalar(customFormatResult); + } else if (j$.util.isUndefined(value)) { + this.emitScalar('undefined'); + } else if (value === null) { + this.emitScalar('null'); + } else if (value === 0 && 1 / value === -Infinity) { + this.emitScalar('-0'); + } else if (value === j$.getGlobal()) { + this.emitScalar(''); + } else if (value.jasmineToString) { + this.emitScalar(value.jasmineToString(this.pp_)); + } else if (typeof value === 'string') { + this.emitString(value); + } else if (j$.isSpy(value)) { + this.emitScalar('spy on ' + value.and.identity); + } else if (j$.isSpy(value.toString)) { + this.emitScalar('spy on ' + value.toString.and.identity); + } else if (value instanceof RegExp) { + this.emitScalar(value.toString()); + } else if (typeof value === 'function') { + this.emitScalar('Function'); + } else if (j$.isDomNode(value)) { + if (value.tagName) { + this.emitDomElement(value); + } else { + this.emitScalar('HTMLNode'); + } + } else if (value instanceof Date) { + this.emitScalar('Date(' + value + ')'); + } else if (j$.isSet(value)) { + this.emitSet(value); + } else if (j$.isMap(value)) { + this.emitMap(value); + } else if (j$.isTypedArray_(value)) { + this.emitTypedArray(value); + } else if ( + value.toString && + typeof value === 'object' && + !j$.isArray_(value) && + hasCustomToString(value) + ) { + try { + this.emitScalar(value.toString()); + } catch (e) { + this.emitScalar('has-invalid-toString-method'); + } + } else if (j$.util.arrayContains(this.seen, value)) { + this.emitScalar( + '' + ); + } else if (j$.isArray_(value) || j$.isA_('Object', value)) { + this.seen.push(value); + if (j$.isArray_(value)) { + this.emitArray(value); + } else { + this.emitObject(value); + } + this.seen.pop(); + } else { + this.emitScalar(value.toString()); + } + } catch (e) { + if (this.ppNestLevel_ > 1 || !(e instanceof MaxCharsReachedError)) { + throw e; + } + } finally { + this.ppNestLevel_--; + } + }; + + SinglePrettyPrintRun.prototype.applyCustomFormatters_ = function(value) { + return customFormat(value, this.customObjectFormatters_); + }; + + SinglePrettyPrintRun.prototype.iterateObject = function(obj, fn) { + var objKeys = keys(obj, j$.isArray_(obj)); + var isGetter = function isGetter(prop) {}; + + if (obj.__lookupGetter__) { + isGetter = function isGetter(prop) { + var getter = obj.__lookupGetter__(prop); + return !j$.util.isUndefined(getter) && getter !== null; + }; + } + var length = Math.min(objKeys.length, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH); + for (var i = 0; i < length; i++) { + var property = objKeys[i]; + fn(property, isGetter(property)); + } + + return objKeys.length > length; + }; + + SinglePrettyPrintRun.prototype.emitScalar = function(value) { + this.append(value); + }; + + SinglePrettyPrintRun.prototype.emitString = function(value) { + this.append("'" + value + "'"); + }; + + SinglePrettyPrintRun.prototype.emitArray = function(array) { + if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) { + this.append('Array'); + return; + } + var length = Math.min(array.length, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH); + this.append('[ '); + for (var i = 0; i < length; i++) { + if (i > 0) { + this.append(', '); + } + this.format(array[i]); + } + if (array.length > length) { + this.append(', ...'); + } + + var self = this; + var first = array.length === 0; + var truncated = this.iterateObject(array, function(property, isGetter) { + if (first) { + first = false; + } else { + self.append(', '); + } + + self.formatProperty(array, property, isGetter); + }); + + if (truncated) { + this.append(', ...'); + } + + this.append(' ]'); + }; + + SinglePrettyPrintRun.prototype.emitSet = function(set) { + if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) { + this.append('Set'); + return; + } + this.append('Set( '); + var size = Math.min(set.size, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH); + var i = 0; + set.forEach(function(value, key) { + if (i >= size) { + return; + } + if (i > 0) { + this.append(', '); + } + this.format(value); + + i++; + }, this); + if (set.size > size) { + this.append(', ...'); + } + this.append(' )'); + }; + + SinglePrettyPrintRun.prototype.emitMap = function(map) { + if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) { + this.append('Map'); + return; + } + this.append('Map( '); + var size = Math.min(map.size, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH); + var i = 0; + map.forEach(function(value, key) { + if (i >= size) { + return; + } + if (i > 0) { + this.append(', '); + } + this.format([key, value]); + + i++; + }, this); + if (map.size > size) { + this.append(', ...'); + } + this.append(' )'); + }; + + SinglePrettyPrintRun.prototype.emitObject = function(obj) { + var ctor = obj.constructor, + constructorName; + + constructorName = + typeof ctor === 'function' && obj instanceof ctor + ? j$.fnNameFor(obj.constructor) + : 'null'; + + this.append(constructorName); + + if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) { + return; + } + + var self = this; + this.append('({ '); + var first = true; + + var truncated = this.iterateObject(obj, function(property, isGetter) { + if (first) { + first = false; + } else { + self.append(', '); + } + + self.formatProperty(obj, property, isGetter); + }); + + if (truncated) { + this.append(', ...'); + } + + this.append(' })'); + }; + + SinglePrettyPrintRun.prototype.emitTypedArray = function(arr) { + var constructorName = j$.fnNameFor(arr.constructor), + limitedArray = Array.prototype.slice.call( + arr, + 0, + j$.MAX_PRETTY_PRINT_ARRAY_LENGTH + ), + itemsString = Array.prototype.join.call(limitedArray, ', '); + + if (limitedArray.length !== arr.length) { + itemsString += ', ...'; + } + + this.append(constructorName + ' [ ' + itemsString + ' ]'); + }; + + SinglePrettyPrintRun.prototype.emitDomElement = function(el) { + var tagName = el.tagName.toLowerCase(), + attrs = el.attributes, + i, + len = attrs.length, + out = '<' + tagName, + attr; + + for (i = 0; i < len; i++) { + attr = attrs[i]; + out += ' ' + attr.name; + + if (attr.value !== '') { + out += '="' + attr.value + '"'; + } + } + + out += '>'; + + if (el.childElementCount !== 0 || el.textContent !== '') { + out += '...'; + } + + this.append(out); + }; + + SinglePrettyPrintRun.prototype.formatProperty = function( + obj, + property, + isGetter + ) { + this.append(property); + this.append(': '); + if (isGetter) { + this.append(''); + } else { + this.format(obj[property]); + } + }; + + SinglePrettyPrintRun.prototype.append = function(value) { + // This check protects us from the rare case where an object has overriden + // `toString()` with an invalid implementation (returning a non-string). + if (typeof value !== 'string') { + value = Object.prototype.toString.call(value); + } + + var result = truncate(value, j$.MAX_PRETTY_PRINT_CHARS - this.length); + this.length += result.value.length; + this.stringParts.push(result.value); + + if (result.truncated) { + throw new MaxCharsReachedError(); + } + }; + + function truncate(s, maxlen) { + if (s.length <= maxlen) { + return { value: s, truncated: false }; + } + + s = s.substring(0, maxlen - 4) + ' ...'; + return { value: s, truncated: true }; + } + + function MaxCharsReachedError() { + this.message = + 'Exceeded ' + + j$.MAX_PRETTY_PRINT_CHARS + + ' characters while pretty-printing a value'; + } + + MaxCharsReachedError.prototype = new Error(); + + function keys(obj, isArray) { + var allKeys = Object.keys + ? Object.keys(obj) + : (function(o) { + var keys = []; + for (var key in o) { + if (j$.util.has(o, key)) { + keys.push(key); + } + } + return keys; + })(obj); + + if (!isArray) { + return allKeys; + } + + if (allKeys.length === 0) { + return allKeys; + } + + var extraKeys = []; + for (var i = 0; i < allKeys.length; i++) { + if (!/^[0-9]+$/.test(allKeys[i])) { + extraKeys.push(allKeys[i]); + } + } + + return extraKeys; + } + + function customFormat(value, customObjectFormatters) { + var i, result; + + for (i = 0; i < customObjectFormatters.length; i++) { + result = customObjectFormatters[i](value); + + if (result !== undefined) { + return result; + } + } + } + + return function(customObjectFormatters) { + customObjectFormatters = customObjectFormatters || []; + + var pp = function(value) { + var prettyPrinter = new SinglePrettyPrintRun(customObjectFormatters, pp); + prettyPrinter.format(value); + return prettyPrinter.stringParts.join(''); + }; + + pp.customFormat_ = function(value) { + return customFormat(value, customObjectFormatters); + }; + + return pp; + }; +}; + +getJasmineRequireObj().QueueRunner = function(j$) { + var nextid = 1; + + function StopExecutionError() {} + StopExecutionError.prototype = new Error(); + j$.StopExecutionError = StopExecutionError; + + function once(fn) { + var called = false; + return function(arg) { + if (!called) { + called = true; + // Direct call using single parameter, because cleanup/next does not need more + fn(arg); + } + return null; + }; + } + + function emptyFn() {} + + function QueueRunner(attrs) { + this.id_ = nextid++; + var queueableFns = attrs.queueableFns || []; + this.queueableFns = queueableFns.concat(attrs.cleanupFns || []); + this.firstCleanupIx = queueableFns.length; + this.onComplete = attrs.onComplete || emptyFn; + this.clearStack = + attrs.clearStack || + function(fn) { + fn(); + }; + this.onException = attrs.onException || emptyFn; + this.userContext = attrs.userContext || new j$.UserContext(); + this.timeout = attrs.timeout || { + setTimeout: setTimeout, + clearTimeout: clearTimeout + }; + this.fail = attrs.fail || emptyFn; + this.globalErrors = attrs.globalErrors || { + pushListener: emptyFn, + popListener: emptyFn + }; + this.completeOnFirstError = !!attrs.completeOnFirstError; + this.errored = false; + + if (typeof this.onComplete !== 'function') { + throw new Error('invalid onComplete ' + JSON.stringify(this.onComplete)); + } + this.deprecated = attrs.deprecated; + } + + QueueRunner.prototype.execute = function() { + var self = this; + this.handleFinalError = function(message, source, lineno, colno, error) { + // Older browsers would send the error as the first parameter. HTML5 + // specifies the the five parameters above. The error instance should + // be preffered, otherwise the call stack would get lost. + self.onException(error || message); + }; + this.globalErrors.pushListener(this.handleFinalError); + this.run(0); + }; + + QueueRunner.prototype.skipToCleanup = function(lastRanIndex) { + if (lastRanIndex < this.firstCleanupIx) { + this.run(this.firstCleanupIx); + } else { + this.run(lastRanIndex + 1); + } + }; + + QueueRunner.prototype.clearTimeout = function(timeoutId) { + Function.prototype.apply.apply(this.timeout.clearTimeout, [ + j$.getGlobal(), + [timeoutId] + ]); + }; + + QueueRunner.prototype.setTimeout = function(fn, timeout) { + return Function.prototype.apply.apply(this.timeout.setTimeout, [ + j$.getGlobal(), + [fn, timeout] + ]); + }; + + QueueRunner.prototype.attempt = function attempt(iterativeIndex) { + var self = this, + completedSynchronously = true, + handleError = function handleError(error) { + onException(error); + next(error); + }, + cleanup = once(function cleanup() { + if (timeoutId !== void 0) { + self.clearTimeout(timeoutId); + } + self.globalErrors.popListener(handleError); + }), + next = once(function next(err) { + cleanup(); + + if (j$.isError_(err)) { + if (!(err instanceof StopExecutionError) && !err.jasmineMessage) { + self.fail(err); + } + self.errored = errored = true; + } + + function runNext() { + if (self.completeOnFirstError && errored) { + self.skipToCleanup(iterativeIndex); + } else { + self.run(iterativeIndex + 1); + } + } + + if (completedSynchronously) { + self.setTimeout(runNext); + } else { + runNext(); + } + }), + errored = false, + queueableFn = self.queueableFns[iterativeIndex], + timeoutId, + maybeThenable; + + next.fail = function nextFail() { + self.fail.apply(null, arguments); + self.errored = errored = true; + next(); + }; + + self.globalErrors.pushListener(handleError); + + if (queueableFn.timeout !== undefined) { + var timeoutInterval = queueableFn.timeout || j$.DEFAULT_TIMEOUT_INTERVAL; + timeoutId = self.setTimeout(function() { + var error = new Error( + 'Timeout - Async function did not complete within ' + + timeoutInterval + + 'ms ' + + (queueableFn.timeout + ? '(custom timeout)' + : '(set by jasmine.DEFAULT_TIMEOUT_INTERVAL)') + ); + onException(error); + next(); + }, timeoutInterval); + } + + try { + if (queueableFn.fn.length === 0) { + maybeThenable = queueableFn.fn.call(self.userContext); + + if (maybeThenable && j$.isFunction_(maybeThenable.then)) { + maybeThenable.then(next, onPromiseRejection); + completedSynchronously = false; + return { completedSynchronously: false }; + } + } else { + maybeThenable = queueableFn.fn.call(self.userContext, next); + this.diagnoseConflictingAsync_(queueableFn.fn, maybeThenable); + completedSynchronously = false; + return { completedSynchronously: false }; + } + } catch (e) { + onException(e); + self.errored = errored = true; + } + + cleanup(); + return { completedSynchronously: true, errored: errored }; + + function onException(e) { + self.onException(e); + self.errored = errored = true; + } + + function onPromiseRejection(e) { + onException(e); + next(); + } + }; + + QueueRunner.prototype.run = function(recursiveIndex) { + var length = this.queueableFns.length, + self = this, + iterativeIndex; + + for ( + iterativeIndex = recursiveIndex; + iterativeIndex < length; + iterativeIndex++ + ) { + var result = this.attempt(iterativeIndex); + + if (!result.completedSynchronously) { + return; + } + + self.errored = self.errored || result.errored; + + if (this.completeOnFirstError && result.errored) { + this.skipToCleanup(iterativeIndex); + return; + } + } + + this.clearStack(function() { + self.globalErrors.popListener(self.handleFinalError); + self.onComplete(self.errored && new StopExecutionError()); + }); + }; + + QueueRunner.prototype.diagnoseConflictingAsync_ = function(fn, retval) { + if (retval && j$.isFunction_(retval.then)) { + // Issue a warning that matches the user's code + if (j$.isAsyncFunction_(fn)) { + this.deprecated( + 'An asynchronous before/it/after ' + + 'function was defined with the async keyword but also took a ' + + 'done callback. This is not supported and will stop working in' + + ' the future. Either remove the done callback (recommended) or ' + + 'remove the async keyword.' + ); + } else { + this.deprecated( + 'An asynchronous before/it/after ' + + 'function took a done callback but also returned a promise. ' + + 'This is not supported and will stop working in the future. ' + + 'Either remove the done callback (recommended) or change the ' + + 'function to not return a promise.' + ); + } + } + }; + + return QueueRunner; +}; + +getJasmineRequireObj().ReportDispatcher = function(j$) { + function ReportDispatcher(methods, queueRunnerFactory) { + var dispatchedMethods = methods || []; + + for (var i = 0; i < dispatchedMethods.length; i++) { + var method = dispatchedMethods[i]; + this[method] = (function(m) { + return function() { + dispatch(m, arguments); + }; + })(method); + } + + var reporters = []; + var fallbackReporter = null; + + this.addReporter = function(reporter) { + reporters.push(reporter); + }; + + this.provideFallbackReporter = function(reporter) { + fallbackReporter = reporter; + }; + + this.clearReporters = function() { + reporters = []; + }; + + return this; + + function dispatch(method, args) { + if (reporters.length === 0 && fallbackReporter !== null) { + reporters.push(fallbackReporter); + } + var onComplete = args[args.length - 1]; + args = j$.util.argsToArray(args).splice(0, args.length - 1); + var fns = []; + for (var i = 0; i < reporters.length; i++) { + var reporter = reporters[i]; + addFn(fns, reporter, method, args); + } + + queueRunnerFactory({ + queueableFns: fns, + onComplete: onComplete, + isReporter: true + }); + } + + function addFn(fns, reporter, method, args) { + var fn = reporter[method]; + if (!fn) { + return; + } + + var thisArgs = j$.util.cloneArgs(args); + if (fn.length <= 1) { + fns.push({ + fn: function() { + return fn.apply(reporter, thisArgs); + } + }); + } else { + fns.push({ + fn: function(done) { + return fn.apply(reporter, thisArgs.concat([done])); + } + }); + } + } + } + + return ReportDispatcher; +}; + +getJasmineRequireObj().interface = function(jasmine, env) { + var jasmineInterface = { + /** + * Callback passed to parts of the Jasmine base interface. + * + * By default Jasmine assumes this function completes synchronously. + * If you have code that you need to test asynchronously, you can declare that you receive a `done` callback, return a Promise, or use the `async` keyword if it is supported in your environment. + * @callback implementationCallback + * @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on. + * @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion. + */ + + /** + * Create a group of specs (often called a suite). + * + * Calls to `describe` can be nested within other calls to compose your suite as a tree. + * @name describe + * @since 1.3.0 + * @function + * @global + * @param {String} description Textual description of the group + * @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs + */ + describe: function(description, specDefinitions) { + return env.describe(description, specDefinitions); + }, + + /** + * A temporarily disabled [`describe`]{@link describe} + * + * Specs within an `xdescribe` will be marked pending and not executed + * @name xdescribe + * @since 1.3.0 + * @function + * @global + * @param {String} description Textual description of the group + * @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs + */ + xdescribe: function(description, specDefinitions) { + return env.xdescribe(description, specDefinitions); + }, + + /** + * A focused [`describe`]{@link describe} + * + * If suites or specs are focused, only those that are focused will be executed + * @see fit + * @name fdescribe + * @since 2.1.0 + * @function + * @global + * @param {String} description Textual description of the group + * @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs + */ + fdescribe: function(description, specDefinitions) { + return env.fdescribe(description, specDefinitions); + }, + + /** + * Define a single spec. A spec should contain one or more {@link expect|expectations} that test the state of the code. + * + * A spec whose expectations all succeed will be passing and a spec with any failures will fail. + * The name `it` is a pronoun for the test target, not an abbreviation of anything. It makes the + * spec more readable by connecting the function name `it` and the argument `description` as a + * complete sentence. + * @name it + * @since 1.3.0 + * @function + * @global + * @param {String} description Textual description of what this spec is checking + * @param {implementationCallback} [testFunction] Function that contains the code of your test. If not provided the test will be `pending`. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec. + * @see async + */ + it: function() { + return env.it.apply(env, arguments); + }, + + /** + * A temporarily disabled [`it`]{@link it} + * + * The spec will report as `pending` and will not be executed. + * @name xit + * @since 1.3.0 + * @function + * @global + * @param {String} description Textual description of what this spec is checking. + * @param {implementationCallback} [testFunction] Function that contains the code of your test. Will not be executed. + */ + xit: function() { + return env.xit.apply(env, arguments); + }, + + /** + * A focused [`it`]{@link it} + * + * If suites or specs are focused, only those that are focused will be executed. + * @name fit + * @since 2.1.0 + * @function + * @global + * @param {String} description Textual description of what this spec is checking. + * @param {implementationCallback} testFunction Function that contains the code of your test. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec. + * @see async + */ + fit: function() { + return env.fit.apply(env, arguments); + }, + + /** + * Run some shared setup before each of the specs in the {@link describe} in which it is called. + * @name beforeEach + * @since 1.3.0 + * @function + * @global + * @param {implementationCallback} [function] Function that contains the code to setup your specs. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeEach. + * @see async + */ + beforeEach: function() { + return env.beforeEach.apply(env, arguments); + }, + + /** + * Run some shared teardown after each of the specs in the {@link describe} in which it is called. + * @name afterEach + * @since 1.3.0 + * @function + * @global + * @param {implementationCallback} [function] Function that contains the code to teardown your specs. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterEach. + * @see async + */ + afterEach: function() { + return env.afterEach.apply(env, arguments); + }, + + /** + * Run some shared setup once before all of the specs in the {@link describe} are run. + * + * _Note:_ Be careful, sharing the setup from a beforeAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail. + * @name beforeAll + * @since 2.1.0 + * @function + * @global + * @param {implementationCallback} [function] Function that contains the code to setup your specs. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeAll. + * @see async + */ + beforeAll: function() { + return env.beforeAll.apply(env, arguments); + }, + + /** + * Run some shared teardown once after all of the specs in the {@link describe} are run. + * + * _Note:_ Be careful, sharing the teardown from a afterAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail. + * @name afterAll + * @since 2.1.0 + * @function + * @global + * @param {implementationCallback} [function] Function that contains the code to teardown your specs. + * @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterAll. + * @see async + */ + afterAll: function() { + return env.afterAll.apply(env, arguments); + }, + + /** + * Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SpecResult} + * @name setSpecProperty + * @since 3.6.0 + * @function + * @param {String} key The name of the property + * @param {*} value The value of the property + */ + setSpecProperty: function(key, value) { + return env.setSpecProperty(key, value); + }, + + /** + * Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SuiteResult} + * @name setSuiteProperty + * @since 3.6.0 + * @function + * @param {String} key The name of the property + * @param {*} value The value of the property + */ + setSuiteProperty: function(key, value) { + return env.setSuiteProperty(key, value); + }, + + /** + * Create an expectation for a spec. + * @name expect + * @since 1.3.0 + * @function + * @global + * @param {Object} actual - Actual computed value to test expectations against. + * @return {matchers} + */ + expect: function(actual) { + return env.expect(actual); + }, + + /** + * Create an asynchronous expectation for a spec. Note that the matchers + * that are provided by an asynchronous expectation all return promises + * which must be either returned from the spec or waited for using `await` + * in order for Jasmine to associate them with the correct spec. + * @name expectAsync + * @since 3.3.0 + * @function + * @global + * @param {Object} actual - Actual computed value to test expectations against. + * @return {async-matchers} + * @example + * await expectAsync(somePromise).toBeResolved(); + * @example + * return expectAsync(somePromise).toBeResolved(); + */ + expectAsync: function(actual) { + return env.expectAsync(actual); + }, + + /** + * Mark a spec as pending, expectation results will be ignored. + * @name pending + * @since 2.0.0 + * @function + * @global + * @param {String} [message] - Reason the spec is pending. + */ + pending: function() { + return env.pending.apply(env, arguments); + }, + + /** + * Explicitly mark a spec as failed. + * @name fail + * @since 2.1.0 + * @function + * @global + * @param {String|Error} [error] - Reason for the failure. + */ + fail: function() { + return env.fail.apply(env, arguments); + }, + + /** + * Install a spy onto an existing object. + * @name spyOn + * @since 1.3.0 + * @function + * @global + * @param {Object} obj - The object upon which to install the {@link Spy}. + * @param {String} methodName - The name of the method to replace with a {@link Spy}. + * @returns {Spy} + */ + spyOn: function(obj, methodName) { + return env.spyOn(obj, methodName); + }, + + /** + * Install a spy on a property installed with `Object.defineProperty` onto an existing object. + * @name spyOnProperty + * @since 2.6.0 + * @function + * @global + * @param {Object} obj - The object upon which to install the {@link Spy} + * @param {String} propertyName - The name of the property to replace with a {@link Spy}. + * @param {String} [accessType=get] - The access type (get|set) of the property to {@link Spy} on. + * @returns {Spy} + */ + spyOnProperty: function(obj, methodName, accessType) { + return env.spyOnProperty(obj, methodName, accessType); + }, + + /** + * Installs spies on all writable and configurable properties of an object. + * @name spyOnAllFunctions + * @since 3.2.1 + * @function + * @global + * @param {Object} obj - The object upon which to install the {@link Spy}s + * @param {boolean} includeNonEnumerable - Whether or not to add spies to non-enumerable properties + * @returns {Object} the spied object + */ + spyOnAllFunctions: function(obj, includeNonEnumerable) { + return env.spyOnAllFunctions(obj, includeNonEnumerable); + }, + + jsApiReporter: new jasmine.JsApiReporter({ + timer: new jasmine.Timer() + }), + + /** + * @namespace jasmine + */ + jasmine: jasmine + }; + + /** + * Add a custom equality tester for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.addCustomEqualityTester + * @since 2.0.0 + * @function + * @param {Function} tester - A function which takes two arguments to compare and returns a `true` or `false` comparison result if it knows how to compare them, and `undefined` otherwise. + * @see custom_equality + */ + jasmine.addCustomEqualityTester = function(tester) { + env.addCustomEqualityTester(tester); + }; + + /** + * Add custom matchers for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.addMatchers + * @since 2.0.0 + * @function + * @param {Object} matchers - Keys from this object will be the new matcher names. + * @see custom_matcher + */ + jasmine.addMatchers = function(matchers) { + return env.addMatchers(matchers); + }; + + /** + * Add custom async matchers for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.addAsyncMatchers + * @since 3.5.0 + * @function + * @param {Object} matchers - Keys from this object will be the new async matcher names. + * @see custom_matcher + */ + jasmine.addAsyncMatchers = function(matchers) { + return env.addAsyncMatchers(matchers); + }; + + /** + * Add a custom object formatter for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.addCustomObjectFormatter + * @since 3.6.0 + * @function + * @param {Function} formatter - A function which takes a value to format and returns a string if it knows how to format it, and `undefined` otherwise. + * @see custom_object_formatters + */ + jasmine.addCustomObjectFormatter = function(formatter) { + return env.addCustomObjectFormatter(formatter); + }; + + /** + * Get the currently booted mock {Clock} for this Jasmine environment. + * @name jasmine.clock + * @since 2.0.0 + * @function + * @returns {Clock} + */ + jasmine.clock = function() { + return env.clock; + }; + + /** + * Create a bare {@link Spy} object. This won't be installed anywhere and will not have any implementation behind it. + * @name jasmine.createSpy + * @since 1.3.0 + * @function + * @param {String} [name] - Name to give the spy. This will be displayed in failure messages. + * @param {Function} [originalFn] - Function to act as the real implementation. + * @return {Spy} + */ + jasmine.createSpy = function(name, originalFn) { + return env.createSpy(name, originalFn); + }; + + /** + * Create an object with multiple {@link Spy}s as its members. + * @name jasmine.createSpyObj + * @since 1.3.0 + * @function + * @param {String} [baseName] - Base name for the spies in the object. + * @param {String[]|Object} methodNames - Array of method names to create spies for, or Object whose keys will be method names and values the {@link Spy#and#returnValue|returnValue}. + * @param {String[]|Object} [propertyNames] - Array of property names to create spies for, or Object whose keys will be propertynames and values the {@link Spy#and#returnValue|returnValue}. + * @return {Object} + */ + jasmine.createSpyObj = function(baseName, methodNames, propertyNames) { + return env.createSpyObj(baseName, methodNames, propertyNames); + }; + + /** + * Add a custom spy strategy for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.addSpyStrategy + * @since 3.5.0 + * @function + * @param {String} name - The name of the strategy (i.e. what you call from `and`) + * @param {Function} factory - Factory function that returns the plan to be executed. + */ + jasmine.addSpyStrategy = function(name, factory) { + return env.addSpyStrategy(name, factory); + }; + + /** + * Set the default spy strategy for the current scope of specs. + * + * _Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}. + * @name jasmine.setDefaultSpyStrategy + * @function + * @param {Function} defaultStrategyFn - a function that assigns a strategy + * @example + * beforeEach(function() { + * jasmine.setDefaultSpyStrategy(and => and.returnValue(true)); + * }); + */ + jasmine.setDefaultSpyStrategy = function(defaultStrategyFn) { + return env.setDefaultSpyStrategy(defaultStrategyFn); + }; + + return jasmineInterface; +}; + +getJasmineRequireObj().Spy = function(j$) { + var nextOrder = (function() { + var order = 0; + + return function() { + return order++; + }; + })(); + + var matchersUtil = new j$.MatchersUtil({ + customTesters: [], + pp: j$.makePrettyPrinter() + }); + + /** + * @classdesc _Note:_ Do not construct this directly. Use {@link spyOn}, + * {@link spyOnProperty}, {@link jasmine.createSpy}, or + * {@link jasmine.createSpyObj} instead. + * @class Spy + * @hideconstructor + */ + function Spy( + name, + originalFn, + customStrategies, + defaultStrategyFn, + getPromise + ) { + var numArgs = typeof originalFn === 'function' ? originalFn.length : 0, + wrapper = makeFunc(numArgs, function(context, args, invokeNew) { + return spy(context, args, invokeNew); + }), + strategyDispatcher = new SpyStrategyDispatcher({ + name: name, + fn: originalFn, + getSpy: function() { + return wrapper; + }, + customStrategies: customStrategies, + getPromise: getPromise + }), + callTracker = new j$.CallTracker(), + spy = function(context, args, invokeNew) { + /** + * @name Spy.callData + * @property {object} object - `this` context for the invocation. + * @property {number} invocationOrder - Order of the invocation. + * @property {Array} args - The arguments passed for this invocation. + * @property returnValue - The value that was returned from this invocation. + */ + var callData = { + object: context, + invocationOrder: nextOrder(), + args: Array.prototype.slice.apply(args) + }; + + callTracker.track(callData); + var returnValue = strategyDispatcher.exec(context, args, invokeNew); + callData.returnValue = returnValue; + + return returnValue; + }; + + function makeFunc(length, fn) { + switch (length) { + case 1: + return function wrap1(a) { + return fn(this, arguments, this instanceof wrap1); + }; + case 2: + return function wrap2(a, b) { + return fn(this, arguments, this instanceof wrap2); + }; + case 3: + return function wrap3(a, b, c) { + return fn(this, arguments, this instanceof wrap3); + }; + case 4: + return function wrap4(a, b, c, d) { + return fn(this, arguments, this instanceof wrap4); + }; + case 5: + return function wrap5(a, b, c, d, e) { + return fn(this, arguments, this instanceof wrap5); + }; + case 6: + return function wrap6(a, b, c, d, e, f) { + return fn(this, arguments, this instanceof wrap6); + }; + case 7: + return function wrap7(a, b, c, d, e, f, g) { + return fn(this, arguments, this instanceof wrap7); + }; + case 8: + return function wrap8(a, b, c, d, e, f, g, h) { + return fn(this, arguments, this instanceof wrap8); + }; + case 9: + return function wrap9(a, b, c, d, e, f, g, h, i) { + return fn(this, arguments, this instanceof wrap9); + }; + default: + return function wrap() { + return fn(this, arguments, this instanceof wrap); + }; + } + } + + for (var prop in originalFn) { + if (prop === 'and' || prop === 'calls') { + throw new Error( + "Jasmine spies would overwrite the 'and' and 'calls' properties on the object being spied upon" + ); + } + + wrapper[prop] = originalFn[prop]; + } + + /** + * @member {SpyStrategy} - Accesses the default strategy for the spy. This strategy will be used + * whenever the spy is called with arguments that don't match any strategy + * created with {@link Spy#withArgs}. + * @name Spy#and + * @since 2.0.0 + * @example + * spyOn(someObj, 'func').and.returnValue(42); + */ + wrapper.and = strategyDispatcher.and; + /** + * Specifies a strategy to be used for calls to the spy that have the + * specified arguments. + * @name Spy#withArgs + * @since 3.0.0 + * @function + * @param {...*} args - The arguments to match + * @type {SpyStrategy} + * @example + * spyOn(someObj, 'func').withArgs(1, 2, 3).and.returnValue(42); + * someObj.func(1, 2, 3); // returns 42 + */ + wrapper.withArgs = function() { + return strategyDispatcher.withArgs.apply(strategyDispatcher, arguments); + }; + wrapper.calls = callTracker; + + if (defaultStrategyFn) { + defaultStrategyFn(wrapper.and); + } + + return wrapper; + } + + function SpyStrategyDispatcher(strategyArgs) { + var baseStrategy = new j$.SpyStrategy(strategyArgs); + var argsStrategies = new StrategyDict(function() { + return new j$.SpyStrategy(strategyArgs); + }); + + this.and = baseStrategy; + + this.exec = function(spy, args, invokeNew) { + var strategy = argsStrategies.get(args); + + if (!strategy) { + if (argsStrategies.any() && !baseStrategy.isConfigured()) { + throw new Error( + "Spy '" + + strategyArgs.name + + "' received a call with arguments " + + j$.pp(Array.prototype.slice.call(args)) + + ' but all configured strategies specify other arguments.' + ); + } else { + strategy = baseStrategy; + } + } + + return strategy.exec(spy, args, invokeNew); + }; + + this.withArgs = function() { + return { and: argsStrategies.getOrCreate(arguments) }; + }; + } + + function StrategyDict(strategyFactory) { + this.strategies = []; + this.strategyFactory = strategyFactory; + } + + StrategyDict.prototype.any = function() { + return this.strategies.length > 0; + }; + + StrategyDict.prototype.getOrCreate = function(args) { + var strategy = this.get(args); + + if (!strategy) { + strategy = this.strategyFactory(); + this.strategies.push({ + args: args, + strategy: strategy + }); + } + + return strategy; + }; + + StrategyDict.prototype.get = function(args) { + var i; + + for (i = 0; i < this.strategies.length; i++) { + if (matchersUtil.equals(args, this.strategies[i].args)) { + return this.strategies[i].strategy; + } + } + }; + + return Spy; +}; + +getJasmineRequireObj().SpyFactory = function(j$) { + function SpyFactory(getCustomStrategies, getDefaultStrategyFn, getPromise) { + var self = this; + + this.createSpy = function(name, originalFn) { + return j$.Spy( + name, + originalFn, + getCustomStrategies(), + getDefaultStrategyFn(), + getPromise + ); + }; + + this.createSpyObj = function(baseName, methodNames, propertyNames) { + var baseNameIsCollection = + j$.isObject_(baseName) || j$.isArray_(baseName); + + if (baseNameIsCollection) { + propertyNames = methodNames; + methodNames = baseName; + baseName = 'unknown'; + } + + var obj = {}; + var spy, descriptor; + + var methods = normalizeKeyValues(methodNames); + for (var i = 0; i < methods.length; i++) { + spy = obj[methods[i][0]] = self.createSpy( + baseName + '.' + methods[i][0] + ); + if (methods[i].length > 1) { + spy.and.returnValue(methods[i][1]); + } + } + + var properties = normalizeKeyValues(propertyNames); + for (var i = 0; i < properties.length; i++) { + descriptor = { + enumerable: true, + get: self.createSpy(baseName + '.' + properties[i][0] + '.get'), + set: self.createSpy(baseName + '.' + properties[i][0] + '.set') + }; + if (properties[i].length > 1) { + descriptor.get.and.returnValue(properties[i][1]); + descriptor.set.and.returnValue(properties[i][1]); + } + Object.defineProperty(obj, properties[i][0], descriptor); + } + + if (methods.length === 0 && properties.length === 0) { + throw 'createSpyObj requires a non-empty array or object of method names to create spies for'; + } + + return obj; + }; + } + + function normalizeKeyValues(object) { + var result = []; + if (j$.isArray_(object)) { + for (var i = 0; i < object.length; i++) { + result.push([object[i]]); + } + } else if (j$.isObject_(object)) { + for (var key in object) { + if (object.hasOwnProperty(key)) { + result.push([key, object[key]]); + } + } + } + return result; + } + + return SpyFactory; +}; + +getJasmineRequireObj().SpyRegistry = function(j$) { + var spyOnMsg = j$.formatErrorMsg('', 'spyOn(, )'); + var spyOnPropertyMsg = j$.formatErrorMsg( + '', + 'spyOnProperty(, , [accessType])' + ); + + function SpyRegistry(options) { + options = options || {}; + var global = options.global || j$.getGlobal(); + var createSpy = options.createSpy; + var currentSpies = + options.currentSpies || + function() { + return []; + }; + + this.allowRespy = function(allow) { + this.respy = allow; + }; + + this.spyOn = function(obj, methodName) { + var getErrorMsg = spyOnMsg; + + if (j$.util.isUndefined(obj) || obj === null) { + throw new Error( + getErrorMsg( + 'could not find an object to spy upon for ' + methodName + '()' + ) + ); + } + + if (j$.util.isUndefined(methodName) || methodName === null) { + throw new Error(getErrorMsg('No method name supplied')); + } + + if (j$.util.isUndefined(obj[methodName])) { + throw new Error(getErrorMsg(methodName + '() method does not exist')); + } + + if (obj[methodName] && j$.isSpy(obj[methodName])) { + if (this.respy) { + return obj[methodName]; + } else { + throw new Error( + getErrorMsg(methodName + ' has already been spied upon') + ); + } + } + + var descriptor = Object.getOwnPropertyDescriptor(obj, methodName); + + if (descriptor && !(descriptor.writable || descriptor.set)) { + throw new Error( + getErrorMsg(methodName + ' is not declared writable or has no setter') + ); + } + + var originalMethod = obj[methodName], + spiedMethod = createSpy(methodName, originalMethod), + restoreStrategy; + + if ( + Object.prototype.hasOwnProperty.call(obj, methodName) || + (obj === global && methodName === 'onerror') + ) { + restoreStrategy = function() { + obj[methodName] = originalMethod; + }; + } else { + restoreStrategy = function() { + if (!delete obj[methodName]) { + obj[methodName] = originalMethod; + } + }; + } + + currentSpies().push({ + restoreObjectToOriginalState: restoreStrategy + }); + + obj[methodName] = spiedMethod; + + return spiedMethod; + }; + + this.spyOnProperty = function(obj, propertyName, accessType) { + var getErrorMsg = spyOnPropertyMsg; + + accessType = accessType || 'get'; + + if (j$.util.isUndefined(obj)) { + throw new Error( + getErrorMsg( + 'spyOn could not find an object to spy upon for ' + + propertyName + + '' + ) + ); + } + + if (j$.util.isUndefined(propertyName)) { + throw new Error(getErrorMsg('No property name supplied')); + } + + var descriptor = j$.util.getPropertyDescriptor(obj, propertyName); + + if (!descriptor) { + throw new Error(getErrorMsg(propertyName + ' property does not exist')); + } + + if (!descriptor.configurable) { + throw new Error( + getErrorMsg(propertyName + ' is not declared configurable') + ); + } + + if (!descriptor[accessType]) { + throw new Error( + getErrorMsg( + 'Property ' + + propertyName + + ' does not have access type ' + + accessType + ) + ); + } + + if (j$.isSpy(descriptor[accessType])) { + if (this.respy) { + return descriptor[accessType]; + } else { + throw new Error( + getErrorMsg( + propertyName + '#' + accessType + ' has already been spied upon' + ) + ); + } + } + + var originalDescriptor = j$.util.clone(descriptor), + spy = createSpy(propertyName, descriptor[accessType]), + restoreStrategy; + + if (Object.prototype.hasOwnProperty.call(obj, propertyName)) { + restoreStrategy = function() { + Object.defineProperty(obj, propertyName, originalDescriptor); + }; + } else { + restoreStrategy = function() { + delete obj[propertyName]; + }; + } + + currentSpies().push({ + restoreObjectToOriginalState: restoreStrategy + }); + + descriptor[accessType] = spy; + + Object.defineProperty(obj, propertyName, descriptor); + + return spy; + }; + + this.spyOnAllFunctions = function(obj, includeNonEnumerable) { + if (j$.util.isUndefined(obj)) { + throw new Error( + 'spyOnAllFunctions could not find an object to spy upon' + ); + } + + var pointer = obj, + propsToSpyOn = [], + properties, + propertiesToSkip = []; + + while ( + pointer && + (!includeNonEnumerable || pointer !== Object.prototype) + ) { + properties = getProps(pointer, includeNonEnumerable); + properties = properties.filter(function(prop) { + return propertiesToSkip.indexOf(prop) === -1; + }); + propertiesToSkip = propertiesToSkip.concat(properties); + propsToSpyOn = propsToSpyOn.concat( + getSpyableFunctionProps(pointer, properties) + ); + pointer = Object.getPrototypeOf(pointer); + } + + for (var i = 0; i < propsToSpyOn.length; i++) { + this.spyOn(obj, propsToSpyOn[i]); + } + + return obj; + }; + + this.clearSpies = function() { + var spies = currentSpies(); + for (var i = spies.length - 1; i >= 0; i--) { + var spyEntry = spies[i]; + spyEntry.restoreObjectToOriginalState(); + } + }; + } + + function getProps(obj, includeNonEnumerable) { + var enumerableProperties = Object.keys(obj); + + if (!includeNonEnumerable) { + return enumerableProperties; + } + + return Object.getOwnPropertyNames(obj).filter(function(prop) { + return ( + prop !== 'constructor' || + enumerableProperties.indexOf('constructor') > -1 + ); + }); + } + + function getSpyableFunctionProps(obj, propertiesToCheck) { + var props = [], + prop; + for (var i = 0; i < propertiesToCheck.length; i++) { + prop = propertiesToCheck[i]; + if ( + Object.prototype.hasOwnProperty.call(obj, prop) && + isSpyableProp(obj, prop) + ) { + props.push(prop); + } + } + return props; + } + + function isSpyableProp(obj, prop) { + var value, descriptor; + try { + value = obj[prop]; + } catch (e) { + return false; + } + if (value instanceof Function) { + descriptor = Object.getOwnPropertyDescriptor(obj, prop); + return (descriptor.writable || descriptor.set) && descriptor.configurable; + } + return false; + } + + return SpyRegistry; +}; + +getJasmineRequireObj().SpyStrategy = function(j$) { + /** + * @interface SpyStrategy + */ + function SpyStrategy(options) { + options = options || {}; + + var self = this; + + /** + * Get the identifying information for the spy. + * @name SpyStrategy#identity + * @since 3.0.0 + * @member + * @type {String} + */ + this.identity = options.name || 'unknown'; + this.originalFn = options.fn || function() {}; + this.getSpy = options.getSpy || function() {}; + this.plan = this._defaultPlan = function() {}; + + var k, + cs = options.customStrategies || {}; + for (k in cs) { + if (j$.util.has(cs, k) && !this[k]) { + this[k] = createCustomPlan(cs[k]); + } + } + + var getPromise = + typeof options.getPromise === 'function' + ? options.getPromise + : function() {}; + + var requirePromise = function(name) { + var Promise = getPromise(); + + if (!Promise) { + throw new Error( + name + + ' requires global Promise, or `Promise` configured with `jasmine.getEnv().configure()`' + ); + } + + return Promise; + }; + + /** + * Tell the spy to return a promise resolving to the specified value when invoked. + * @name SpyStrategy#resolveTo + * @since 3.5.0 + * @function + * @param {*} value The value to return. + */ + this.resolveTo = function(value) { + var Promise = requirePromise('resolveTo'); + self.plan = function() { + return Promise.resolve(value); + }; + return self.getSpy(); + }; + + /** + * Tell the spy to return a promise rejecting with the specified value when invoked. + * @name SpyStrategy#rejectWith + * @since 3.5.0 + * @function + * @param {*} value The value to return. + */ + this.rejectWith = function(value) { + var Promise = requirePromise('rejectWith'); + + self.plan = function() { + return Promise.reject(value); + }; + return self.getSpy(); + }; + } + + function createCustomPlan(factory) { + return function() { + var plan = factory.apply(null, arguments); + + if (!j$.isFunction_(plan)) { + throw new Error('Spy strategy must return a function'); + } + + this.plan = plan; + return this.getSpy(); + }; + } + + /** + * Execute the current spy strategy. + * @name SpyStrategy#exec + * @since 2.0.0 + * @function + */ + SpyStrategy.prototype.exec = function(context, args, invokeNew) { + var contextArgs = [context].concat( + args ? Array.prototype.slice.call(args) : [] + ); + var target = this.plan.bind.apply(this.plan, contextArgs); + + return invokeNew ? new target() : target(); + }; + + /** + * Tell the spy to call through to the real implementation when invoked. + * @name SpyStrategy#callThrough + * @since 2.0.0 + * @function + */ + SpyStrategy.prototype.callThrough = function() { + this.plan = this.originalFn; + return this.getSpy(); + }; + + /** + * Tell the spy to return the value when invoked. + * @name SpyStrategy#returnValue + * @since 2.0.0 + * @function + * @param {*} value The value to return. + */ + SpyStrategy.prototype.returnValue = function(value) { + this.plan = function() { + return value; + }; + return this.getSpy(); + }; + + /** + * Tell the spy to return one of the specified values (sequentially) each time the spy is invoked. + * @name SpyStrategy#returnValues + * @since 2.1.0 + * @function + * @param {...*} values - Values to be returned on subsequent calls to the spy. + */ + SpyStrategy.prototype.returnValues = function() { + var values = Array.prototype.slice.call(arguments); + this.plan = function() { + return values.shift(); + }; + return this.getSpy(); + }; + + /** + * Tell the spy to throw an error when invoked. + * @name SpyStrategy#throwError + * @since 2.0.0 + * @function + * @param {Error|Object|String} something Thing to throw + */ + SpyStrategy.prototype.throwError = function(something) { + var error = j$.isString_(something) ? new Error(something) : something; + this.plan = function() { + throw error; + }; + return this.getSpy(); + }; + + /** + * Tell the spy to call a fake implementation when invoked. + * @name SpyStrategy#callFake + * @since 2.0.0 + * @function + * @param {Function} fn The function to invoke with the passed parameters. + */ + SpyStrategy.prototype.callFake = function(fn) { + if ( + !( + j$.isFunction_(fn) || + j$.isAsyncFunction_(fn) || + j$.isGeneratorFunction_(fn) + ) + ) { + throw new Error( + 'Argument passed to callFake should be a function, got ' + fn + ); + } + this.plan = fn; + return this.getSpy(); + }; + + /** + * Tell the spy to do nothing when invoked. This is the default. + * @name SpyStrategy#stub + * @since 2.0.0 + * @function + */ + SpyStrategy.prototype.stub = function(fn) { + this.plan = function() {}; + return this.getSpy(); + }; + + SpyStrategy.prototype.isConfigured = function() { + return this.plan !== this._defaultPlan; + }; + + return SpyStrategy; +}; + +getJasmineRequireObj().StackTrace = function(j$) { + function StackTrace(error) { + var lines = error.stack.split('\n').filter(function(line) { + return line !== ''; + }); + + var extractResult = extractMessage(error.message, lines); + + if (extractResult) { + this.message = extractResult.message; + lines = extractResult.remainder; + } + + var parseResult = tryParseFrames(lines); + this.frames = parseResult.frames; + this.style = parseResult.style; + } + + var framePatterns = [ + // PhantomJS on Linux, Node, Chrome, IE, Edge + // e.g. " at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:4320:20)" + // Note that the "function name" can include a surprisingly large set of + // characters, including angle brackets and square brackets. + { + re: /^\s*at ([^\)]+) \(([^\)]+)\)$/, + fnIx: 1, + fileLineColIx: 2, + style: 'v8' + }, + + // NodeJS alternate form, often mixed in with the Chrome style + // e.g. " at /some/path:4320:20 + { re: /\s*at (.+)$/, fileLineColIx: 1, style: 'v8' }, + + // PhantomJS on OS X, Safari, Firefox + // e.g. "run@http://localhost:8888/__jasmine__/jasmine.js:4320:27" + // or "http://localhost:8888/__jasmine__/jasmine.js:4320:27" + { + re: /^(([^@\s]+)@)?([^\s]+)$/, + fnIx: 2, + fileLineColIx: 3, + style: 'webkit' + } + ]; + + // regexes should capture the function name (if any) as group 1 + // and the file, line, and column as group 2. + function tryParseFrames(lines) { + var style = null; + var frames = lines.map(function(line) { + var convertedLine = first(framePatterns, function(pattern) { + var overallMatch = line.match(pattern.re), + fileLineColMatch; + if (!overallMatch) { + return null; + } + + fileLineColMatch = overallMatch[pattern.fileLineColIx].match( + /^(.*):(\d+):\d+$/ + ); + if (!fileLineColMatch) { + return null; + } + + style = style || pattern.style; + return { + raw: line, + file: fileLineColMatch[1], + line: parseInt(fileLineColMatch[2], 10), + func: overallMatch[pattern.fnIx] + }; + }); + + return convertedLine || { raw: line }; + }); + + return { + style: style, + frames: frames + }; + } + + function first(items, fn) { + var i, result; + + for (i = 0; i < items.length; i++) { + result = fn(items[i]); + + if (result) { + return result; + } + } + } + + function extractMessage(message, stackLines) { + var len = messagePrefixLength(message, stackLines); + + if (len > 0) { + return { + message: stackLines.slice(0, len).join('\n'), + remainder: stackLines.slice(len) + }; + } + } + + function messagePrefixLength(message, stackLines) { + if (!stackLines[0].match(/^\w*Error/)) { + return 0; + } + + var messageLines = message.split('\n'); + var i; + + for (i = 1; i < messageLines.length; i++) { + if (messageLines[i] !== stackLines[i]) { + return 0; + } + } + + return messageLines.length; + } + + return StackTrace; +}; + +getJasmineRequireObj().Suite = function(j$) { + /** + * @interface Suite + * @see Env#topSuite + */ + function Suite(attrs) { + this.env = attrs.env; + /** + * The unique ID of this suite. + * @name Suite#id + * @readonly + * @type {string} + */ + this.id = attrs.id; + /** + * The parent of this suite, or null if this is the top suite. + * @name Suite#parentSuite + * @readonly + * @type {Suite} + */ + this.parentSuite = attrs.parentSuite; + /** + * The description passed to the {@link describe} that created this suite. + * @name Suite#description + * @readonly + * @type {string} + */ + this.description = attrs.description; + this.expectationFactory = attrs.expectationFactory; + this.asyncExpectationFactory = attrs.asyncExpectationFactory; + this.expectationResultFactory = attrs.expectationResultFactory; + this.throwOnExpectationFailure = !!attrs.throwOnExpectationFailure; + + this.beforeFns = []; + this.afterFns = []; + this.beforeAllFns = []; + this.afterAllFns = []; + + this.timer = attrs.timer || new j$.Timer(); + + /** + * The suite's children. + * @name Suite#children + * @type {Array.<(Spec|Suite)>} + */ + this.children = []; + + /** + * @typedef SuiteResult + * @property {Int} id - The unique id of this suite. + * @property {String} description - The description text passed to the {@link describe} that made this suite. + * @property {String} fullName - The full description including all ancestors of this suite. + * @property {Expectation[]} failedExpectations - The list of expectations that failed in an {@link afterAll} for this suite. + * @property {Expectation[]} deprecationWarnings - The list of deprecation warnings that occurred on this suite. + * @property {String} status - Once the suite has completed, this string represents the pass/fail status of this suite. + * @property {number} duration - The time in ms for Suite execution, including any before/afterAll, before/afterEach. + * @property {Object} properties - User-supplied properties, if any, that were set using {@link Env#setSuiteProperty} + */ + this.result = { + id: this.id, + description: this.description, + fullName: this.getFullName(), + failedExpectations: [], + deprecationWarnings: [], + duration: null, + properties: null + }; + } + + Suite.prototype.setSuiteProperty = function(key, value) { + this.result.properties = this.result.properties || {}; + this.result.properties[key] = value; + }; + + Suite.prototype.expect = function(actual) { + return this.expectationFactory(actual, this); + }; + + Suite.prototype.expectAsync = function(actual) { + return this.asyncExpectationFactory(actual, this); + }; + + /** + * The full description including all ancestors of this suite. + * @name Suite#getFullName + * @function + * @returns {string} + */ + Suite.prototype.getFullName = function() { + var fullName = []; + for ( + var parentSuite = this; + parentSuite; + parentSuite = parentSuite.parentSuite + ) { + if (parentSuite.parentSuite) { + fullName.unshift(parentSuite.description); + } + } + return fullName.join(' '); + }; + + Suite.prototype.pend = function() { + this.markedPending = true; + }; + + Suite.prototype.beforeEach = function(fn) { + this.beforeFns.unshift(fn); + }; + + Suite.prototype.beforeAll = function(fn) { + this.beforeAllFns.push(fn); + }; + + Suite.prototype.afterEach = function(fn) { + this.afterFns.unshift(fn); + }; + + Suite.prototype.afterAll = function(fn) { + this.afterAllFns.unshift(fn); + }; + + Suite.prototype.startTimer = function() { + this.timer.start(); + }; + + Suite.prototype.endTimer = function() { + this.result.duration = this.timer.elapsed(); + }; + + function removeFns(queueableFns) { + for (var i = 0; i < queueableFns.length; i++) { + queueableFns[i].fn = null; + } + } + + Suite.prototype.cleanupBeforeAfter = function() { + removeFns(this.beforeAllFns); + removeFns(this.afterAllFns); + removeFns(this.beforeFns); + removeFns(this.afterFns); + }; + + Suite.prototype.addChild = function(child) { + this.children.push(child); + }; + + Suite.prototype.status = function() { + if (this.markedPending) { + return 'pending'; + } + + if (this.result.failedExpectations.length > 0) { + return 'failed'; + } else { + return 'passed'; + } + }; + + Suite.prototype.canBeReentered = function() { + return this.beforeAllFns.length === 0 && this.afterAllFns.length === 0; + }; + + Suite.prototype.getResult = function() { + this.result.status = this.status(); + return this.result; + }; + + Suite.prototype.sharedUserContext = function() { + if (!this.sharedContext) { + this.sharedContext = this.parentSuite + ? this.parentSuite.clonedSharedUserContext() + : new j$.UserContext(); + } + + return this.sharedContext; + }; + + Suite.prototype.clonedSharedUserContext = function() { + return j$.UserContext.fromExisting(this.sharedUserContext()); + }; + + Suite.prototype.onException = function() { + if (arguments[0] instanceof j$.errors.ExpectationFailed) { + return; + } + + var data = { + matcherName: '', + passed: false, + expected: '', + actual: '', + error: arguments[0] + }; + var failedExpectation = this.expectationResultFactory(data); + + if (!this.parentSuite) { + failedExpectation.globalErrorType = 'afterAll'; + } + + this.result.failedExpectations.push(failedExpectation); + }; + + Suite.prototype.addExpectationResult = function() { + if (isFailure(arguments)) { + var data = arguments[1]; + this.result.failedExpectations.push(this.expectationResultFactory(data)); + if (this.throwOnExpectationFailure) { + throw new j$.errors.ExpectationFailed(); + } + } + }; + + Suite.prototype.addDeprecationWarning = function(deprecation) { + if (typeof deprecation === 'string') { + deprecation = { message: deprecation }; + } + this.result.deprecationWarnings.push( + this.expectationResultFactory(deprecation) + ); + }; + + function isFailure(args) { + return !args[0]; + } + + return Suite; +}; + +if (typeof window == void 0 && typeof exports == 'object') { + /* globals exports */ + exports.Suite = jasmineRequire.Suite; +} + +getJasmineRequireObj().Timer = function() { + var defaultNow = (function(Date) { + return function() { + return new Date().getTime(); + }; + })(Date); + + function Timer(options) { + options = options || {}; + + var now = options.now || defaultNow, + startTime; + + this.start = function() { + startTime = now(); + }; + + this.elapsed = function() { + return now() - startTime; + }; + } + + return Timer; +}; + +getJasmineRequireObj().TreeProcessor = function() { + function TreeProcessor(attrs) { + var tree = attrs.tree, + runnableIds = attrs.runnableIds, + queueRunnerFactory = attrs.queueRunnerFactory, + nodeStart = attrs.nodeStart || function() {}, + nodeComplete = attrs.nodeComplete || function() {}, + failSpecWithNoExpectations = !!attrs.failSpecWithNoExpectations, + orderChildren = + attrs.orderChildren || + function(node) { + return node.children; + }, + excludeNode = + attrs.excludeNode || + function(node) { + return false; + }, + stats = { valid: true }, + processed = false, + defaultMin = Infinity, + defaultMax = 1 - Infinity; + + this.processTree = function() { + processNode(tree, true); + processed = true; + return stats; + }; + + this.execute = function(done) { + if (!processed) { + this.processTree(); + } + + if (!stats.valid) { + throw 'invalid order'; + } + + var childFns = wrapChildren(tree, 0); + + queueRunnerFactory({ + queueableFns: childFns, + userContext: tree.sharedUserContext(), + onException: function() { + tree.onException.apply(tree, arguments); + }, + onComplete: done + }); + }; + + function runnableIndex(id) { + for (var i = 0; i < runnableIds.length; i++) { + if (runnableIds[i] === id) { + return i; + } + } + } + + function processNode(node, parentExcluded) { + var executableIndex = runnableIndex(node.id); + + if (executableIndex !== undefined) { + parentExcluded = false; + } + + if (!node.children) { + var excluded = parentExcluded || excludeNode(node); + stats[node.id] = { + excluded: excluded, + willExecute: !excluded && !node.markedPending, + segments: [ + { + index: 0, + owner: node, + nodes: [node], + min: startingMin(executableIndex), + max: startingMax(executableIndex) + } + ] + }; + } else { + var hasExecutableChild = false; + + var orderedChildren = orderChildren(node); + + for (var i = 0; i < orderedChildren.length; i++) { + var child = orderedChildren[i]; + + processNode(child, parentExcluded); + + if (!stats.valid) { + return; + } + + var childStats = stats[child.id]; + + hasExecutableChild = hasExecutableChild || childStats.willExecute; + } + + stats[node.id] = { + excluded: parentExcluded, + willExecute: hasExecutableChild + }; + + segmentChildren(node, orderedChildren, stats[node.id], executableIndex); + + if (!node.canBeReentered() && stats[node.id].segments.length > 1) { + stats = { valid: false }; + } + } + } + + function startingMin(executableIndex) { + return executableIndex === undefined ? defaultMin : executableIndex; + } + + function startingMax(executableIndex) { + return executableIndex === undefined ? defaultMax : executableIndex; + } + + function segmentChildren( + node, + orderedChildren, + nodeStats, + executableIndex + ) { + var currentSegment = { + index: 0, + owner: node, + nodes: [], + min: startingMin(executableIndex), + max: startingMax(executableIndex) + }, + result = [currentSegment], + lastMax = defaultMax, + orderedChildSegments = orderChildSegments(orderedChildren); + + function isSegmentBoundary(minIndex) { + return ( + lastMax !== defaultMax && + minIndex !== defaultMin && + lastMax < minIndex - 1 + ); + } + + for (var i = 0; i < orderedChildSegments.length; i++) { + var childSegment = orderedChildSegments[i], + maxIndex = childSegment.max, + minIndex = childSegment.min; + + if (isSegmentBoundary(minIndex)) { + currentSegment = { + index: result.length, + owner: node, + nodes: [], + min: defaultMin, + max: defaultMax + }; + result.push(currentSegment); + } + + currentSegment.nodes.push(childSegment); + currentSegment.min = Math.min(currentSegment.min, minIndex); + currentSegment.max = Math.max(currentSegment.max, maxIndex); + lastMax = maxIndex; + } + + nodeStats.segments = result; + } + + function orderChildSegments(children) { + var specifiedOrder = [], + unspecifiedOrder = []; + + for (var i = 0; i < children.length; i++) { + var child = children[i], + segments = stats[child.id].segments; + + for (var j = 0; j < segments.length; j++) { + var seg = segments[j]; + + if (seg.min === defaultMin) { + unspecifiedOrder.push(seg); + } else { + specifiedOrder.push(seg); + } + } + } + + specifiedOrder.sort(function(a, b) { + return a.min - b.min; + }); + + return specifiedOrder.concat(unspecifiedOrder); + } + + function executeNode(node, segmentNumber) { + if (node.children) { + return { + fn: function(done) { + var onStart = { + fn: function(next) { + nodeStart(node, next); + } + }; + + queueRunnerFactory({ + onComplete: function() { + var args = Array.prototype.slice.call(arguments, [0]); + node.cleanupBeforeAfter(); + nodeComplete(node, node.getResult(), function() { + done.apply(undefined, args); + }); + }, + queueableFns: [onStart].concat(wrapChildren(node, segmentNumber)), + userContext: node.sharedUserContext(), + onException: function() { + node.onException.apply(node, arguments); + } + }); + } + }; + } else { + return { + fn: function(done) { + node.execute( + done, + stats[node.id].excluded, + failSpecWithNoExpectations + ); + } + }; + } + } + + function wrapChildren(node, segmentNumber) { + var result = [], + segmentChildren = stats[node.id].segments[segmentNumber].nodes; + + for (var i = 0; i < segmentChildren.length; i++) { + result.push( + executeNode(segmentChildren[i].owner, segmentChildren[i].index) + ); + } + + if (!stats[node.id].willExecute) { + return result; + } + + return node.beforeAllFns.concat(result).concat(node.afterAllFns); + } + } + + return TreeProcessor; +}; + +getJasmineRequireObj().UserContext = function(j$) { + function UserContext() {} + + UserContext.fromExisting = function(oldContext) { + var context = new UserContext(); + + for (var prop in oldContext) { + if (oldContext.hasOwnProperty(prop)) { + context[prop] = oldContext[prop]; + } + } + + return context; + }; + + return UserContext; +}; + +getJasmineRequireObj().version = function() { + return '3.9.0'; +}; diff --git a/src/test/resources/libraries/jasmine/jasmine_3.9.0/smoketest.html b/src/test/resources/libraries/jasmine/jasmine_3.9.0/smoketest.html new file mode 100644 index 0000000000..86abca9984 --- /dev/null +++ b/src/test/resources/libraries/jasmine/jasmine_3.9.0/smoketest.html @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + From 6a338772a9b47d9d7e3f89dd9967eba8e7761432 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Wed, 6 Aug 2025 18:04:37 +0200 Subject: [PATCH 10/39] jdoc --- src/main/java/org/htmlunit/html/DefaultElementFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/htmlunit/html/DefaultElementFactory.java b/src/main/java/org/htmlunit/html/DefaultElementFactory.java index 71e9bf6be1..fa2fc7a0b5 100644 --- a/src/main/java/org/htmlunit/html/DefaultElementFactory.java +++ b/src/main/java/org/htmlunit/html/DefaultElementFactory.java @@ -56,7 +56,7 @@ public class DefaultElementFactory implements ElementFactory { /** * You can generate your own test cases by looking into - * {@link org.htmlunit.source.ElementTestSource#generateTestForHtmlElements(String, String)}. + * org.htmlunit.source.ElementTestSource#generateTestForHtmlElements(String, String). */ public static final List SUPPORTED_TAGS_ = Collections.unmodifiableList(Arrays.asList( HtmlAbbreviated.TAG_NAME, HtmlAcronym.TAG_NAME, From f0c6cebc53b637efc675b353c89888e918b3a4e1 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:24:20 +0200 Subject: [PATCH 11/39] Chrome/Edge 139, Firefox 141 --- .../java/org/htmlunit/BrowserVersion.java | 19 ++++++++++++++++--- .../java/org/htmlunit/BrowserVersionTest.java | 6 +++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/htmlunit/BrowserVersion.java b/src/main/java/org/htmlunit/BrowserVersion.java index d37b66c972..aa9d751328 100644 --- a/src/main/java/org/htmlunit/BrowserVersion.java +++ b/src/main/java/org/htmlunit/BrowserVersion.java @@ -65,7 +65,7 @@ public final class BrowserVersion implements Serializable { /** Latest Firefox. */ - public static final BrowserVersion FIREFOX = new BrowserVersion(140, "FF"); + public static final BrowserVersion FIREFOX = new BrowserVersion(141, "FF"); private static final int FIREFOX_ESR_NUMERIC = 128; @@ -73,10 +73,10 @@ public final class BrowserVersion implements Serializable { public static final BrowserVersion FIREFOX_ESR = new BrowserVersion(FIREFOX_ESR_NUMERIC, "FF-ESR"); /** Latest Edge. */ - public static final BrowserVersion EDGE = new BrowserVersion(138, "Edge"); + public static final BrowserVersion EDGE = new BrowserVersion(139, "Edge"); /** Latest Chrome. */ - public static final BrowserVersion CHROME = new BrowserVersion(138, "Chrome"); + public static final BrowserVersion CHROME = new BrowserVersion(139, "Chrome"); /** * Array with all supported browsers. @@ -224,9 +224,16 @@ public final class BrowserVersion implements Serializable { + CHROME.getBrowserVersionNumeric() + "\", \"Not/A)Brand\";v=\"24\""; */ // 138 + /* CHROME.secClientHintUserAgentHeader_ = "\"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"" + CHROME.getBrowserVersionNumeric() + "\", \"Google Chrome\";v=\"" + CHROME.getBrowserVersionNumeric() + "\""; + */ + + // 139 + CHROME.secClientHintUserAgentHeader_ = "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"" + + CHROME.getBrowserVersionNumeric() + "\", \"Chromium\";v=\"" + + CHROME.getBrowserVersionNumeric() + "\""; CHROME.fontHeights_ = new int[] { 0, 1, 2, 4, 5, 5, 6, 8, 9, 10, 11, 12, 15, 16, 16, 17, 18, 20, 21, 22, 23, 25, 26, 26, @@ -299,9 +306,15 @@ public final class BrowserVersion implements Serializable { */ // 138 + /* EDGE.secClientHintUserAgentHeader_ = "\"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"" + EDGE.getBrowserVersionNumeric() + "\", \"Microsoft Edge\";v=\"" + EDGE.getBrowserVersionNumeric() + "\""; + */ + // 139 + EDGE.secClientHintUserAgentHeader_ = "\"Not;A=Brand\";v=\"99\", \"Microsoft Edge\";v=\"" + + EDGE.getBrowserVersionNumeric() + "\", \"Chromium\";v=\"" + + EDGE.getBrowserVersionNumeric() + "\""; EDGE.fontHeights_ = new int[] { 0, 1, 2, 4, 5, 5, 6, 8, 9, 10, 11, 12, 15, 16, 16, 17, 18, 20, 21, 22, 23, 25, 26, 26, diff --git a/src/test/java/org/htmlunit/BrowserVersionTest.java b/src/test/java/org/htmlunit/BrowserVersionTest.java index 5ac2f1a2b1..54d3bd5c4e 100644 --- a/src/test/java/org/htmlunit/BrowserVersionTest.java +++ b/src/test/java/org/htmlunit/BrowserVersionTest.java @@ -38,10 +38,10 @@ public class BrowserVersionTest { */ @Test public void getBrowserVersionNumeric() { - assertEquals(140, BrowserVersion.FIREFOX.getBrowserVersionNumeric()); + assertEquals(141, BrowserVersion.FIREFOX.getBrowserVersionNumeric()); assertEquals(128, BrowserVersion.FIREFOX_ESR.getBrowserVersionNumeric()); - assertEquals(138, BrowserVersion.CHROME.getBrowserVersionNumeric()); - assertEquals(138, BrowserVersion.EDGE.getBrowserVersionNumeric()); + assertEquals(139, BrowserVersion.CHROME.getBrowserVersionNumeric()); + assertEquals(139, BrowserVersion.EDGE.getBrowserVersionNumeric()); } /** From ba50334bf9260b348f136d0780a7fa6034d1f6e5 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:25:46 +0200 Subject: [PATCH 12/39] Chrome/Edge 139 --- .../canvas/CanvasRenderingContext2DTest.java | 492 +++++++++--------- 1 file changed, 255 insertions(+), 237 deletions(-) diff --git a/src/test/java/org/htmlunit/javascript/host/canvas/CanvasRenderingContext2DTest.java b/src/test/java/org/htmlunit/javascript/host/canvas/CanvasRenderingContext2DTest.java index 98652d7676..3d670c10fb 100644 --- a/src/test/java/org/htmlunit/javascript/host/canvas/CanvasRenderingContext2DTest.java +++ b/src/test/java/org/htmlunit/javascript/host/canvas/CanvasRenderingContext2DTest.java @@ -149,18 +149,19 @@ private void drawImage(final String png, final String canvasSetup, final String * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAutJREFUO" - + "E99k19sU1Ucxz/3du1du94tLcE1IjIUHlASRcEOtnVccWyIJWRmuhD02cBQlMTnvfsiIUQy9uIDCf+hWYFN3Q0mBAIJSCQy" - + "yIgORMtGHe1u71273T/m3qYN2wPn5OSc3znn90nO+X2/AsDF8XGp5vGT/QFJahBFEVEE0T14vtkwndfuf9Sp/Pj8tuAGF0Z" - + "GExveXferaVoIgoAggOD28qI8Ow6iKHD1xs3Dya4P+ioQD3AilVbaNzar86aF6AEqo5xcGQG/D8uyuHzlxnfdyc5v3VwPcC" - + "Y1rLRu2qDOmyaiIHoJmYJJtlS+EpFgZURC1wsYuo7P53P+fPRwfdeWLbeqgLaW91T3CaYNV/8tUQzIyLVBHBxkDMyiwVuxE" - + "HUBHwIOw+qVZG/39nQVkHABls21v3UyVpBwnUy0XiImWQTMWXIFg4fPSux8cwn+mhpSl0YXAVrj6jNjjsHbOfyhMCuW1LNU" - + "riXeKDKllZjRNCayM7yzPMrrS8OkLv6yENDeGlfHJgucvJcnFAoRDtaxIiLR0RQk7LO5l8lx7PcpNq+M0vVGI+cv/LwQsLk" - + "trv6R0bj56D86VkcY+Qf+0mws2+bjVUG0gs7315/wdUsT29bGOJdeDEg0q5pR4sDQGH3rGjhyd47peQHHceh6VWIiq3F7qs" - + "jgJ2/zWmMDZxcA0sOK0tKszhaLnLo+jjpR4Lenc95ngYNgWZ46e9ZEOLB1LXK9TOrST8meHdUqpBWlvU21TItsNsvZOxlOj" - + "+WYnjWxbYew5KN7TZTP17/CspdjSAGJ80MjyZ5KGY+dSCkfdiqqKxvbtjEMg+kZjQdPdWwHVr0kE4vKyLJMwO9HFH0cP51K" - + "7u7tLuvg0A9H3/9s16ejrgkqUva07jgIokDZYGJVpa4nDh4+suObL/cOeYB4IrF63xd7ByORSF3Vad5J2ZMLnClAbiY/u7/" - + "vqz2Tk4/veNf6+/tr8vm8f7GDXxTrum4ODAzM/w8TKTogggbXQgAAAABJRU5ErkJggg==", + @Alerts(DEFAULT = "data:image/png;base64," + + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC8ElEQVR4AVyRy08TURTGvzsz7QgYKUawAkH64GHEhKCEEIO" + + "JLBDcsDHGjfIH6NLEdGsiPha4MXFLotHEBTEBhBJepQ+gMj5YSUC0vEuhUgpl2k6nnpmGgp6Zb87cc8/3u3PncqD4ND8vDo" + + "25H437/J0TUzOdHv9Mp+9/Ub3POdZB7f/cOiC9uNRQe+nis0qrxVFhKXfYy8sdtnKLw26xOuxWq6PCZnNU2K2Oxvra7t7B4" + + "VfHCTpgTz7gVVVFiqRlVU1DTWtSkaasCYxBEHhcbbh8v6fX+eIQogMECDTPSCBpmWF9T8HsloLvIQWBSFKv70R2EQxuoqba" + + "9nBwZKQOFDqAst7AMQ6KCriWZczu5yAqnMauYEI4ZcT0yj54MQ9m8zkUFRaynYhcrPmOADRijGFmLYZtMjDOCOMJAefzOZj" + + "zeJwUeYwu7oLnOYiiSN2ZOwugT0A0kcLUuoy1vSTiigIlmUJJHoc0J9A0A9QElnbioAEOIwugaQSjCRwkk2SMIxiJIbq/D6" + + "YqsJ1iyOFUfNmIYWErRn6tO4M4AlBN+9vWnCTu2jnk4gD+pTAejy9jOhDGSjiKr6sR0LEQIGPWnlmAVi0zifAEIght/4F/M" + + "Yi5tS3Mr2/jWyCEkbkgUok4qgtzQGtpXl0ZAA+9aODSaDLzeDm5Ad/CBn6uhrC4FsJrbwDO+TCuFYsozNWaGXgBemQAKQWg" + + "EzAajLhRfRYNJbk4I4JWlJGUZRhp/7cvmNBxpQTiCRGMLpAFFDpAllNUYhAEAUVFRbjXWIHuW9XoarWgq82Kd3dq8OB6FUq" + + "KzTAaDGCMIU7bIT90QDi8yRgDGMdgMAgwmfJhLStFS10l2uqrUGUpRUFBAZmNZOZIwObmOjmQAbx9/2a5r39gwuudlNwenz" + + "Th9koTHpJ3SnK5JyWXyyuNjbmlkVGXNDw6Ln3o+eh5/uTpb1BwJLQ1N/+SPk+1Dg8NNGXlpHdnf9Mwaei4Bvub/D5PS3v7z" + + "R+a9y8AAAD//4c5aowAAAAGSURBVAMAjetKO7d7dGIAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC6UlEQVQ4T12TXUgUURTH//s57rqj7Yq5VKaWgpbRl7p+rl+" + "ZWihi6VP1qqREJvTsey9FBIIS9CBEZbVpqJkTihgKpSSlsYWa2ppu6u7sjrs6M9ud2davGc69d+7c8+Occ/9HAfLY7XZqZm" @@ -257,8 +258,8 @@ public void drawImage_invalidImage() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+M/A8B8ABQAB/6Zcm10A" - + "AAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWL6z8DwHwAAAP//A3ONEwAAAAZJREFUAwAFCgIB" + + "yRpMngAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P4z8DwHwAFAAH/F1FwBgAAAABJRU5ErkJggg==", FF_ESR = "data:image/png;base64," @@ -279,8 +280,8 @@ public void drawImage_1x1_32bits() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+M/A8B8ABQAB/6Zcm10A" - + "AAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4AWL6z8DwHwAAAP//A3ONEwAAAAZJREFUAwAFCgIB" + + "yRpMngAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P4z8DwHwAFAAH/F1FwBgAAAABJRU5ErkJggg==", FF_ESR = "data:image/png;base64," @@ -296,8 +297,8 @@ public void drawImage_1x1_24bits() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABdJREFUGFdj/M/A8J+RgYGRAQrgDOI" - + "FAIPmAgWeg1g2AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVR4AWSIsQ0AAAiDsP//rB1MlxIGghYsQQOWoNRHjQMA" + + "AP//SMpI1gAAAAZJREFUAwCEdgIJz8+ExgAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAF0lEQVQIW2P8z8Dwn5GBAYggAM4gXgAAg+YCBUgKw5EAAAAA" + "SUVORK5CYII=", @@ -315,8 +316,8 @@ public void drawImage3Arguments() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABpJREFUGFdjZEADjFgF/jMw/GdkYABL" - + "YqgAADfmAgXboMAzAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVR4AWyKsQ0AAAiD0P9/1qZupoSJ0DxyGJC3+iiQmAUA" + + "AP//C9I1QgAAAAZJREFUAwA4dgIJmGt15AAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGUlEQVQIW2NkQAOMWAX+MzD8B8qAJTFUAAA35gIFxQ+VugAA" + "AABJRU5ErkJggg==", @@ -335,8 +336,8 @@ public void drawImage3ArgumentsPlacement() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAC1JREFUGFc1yNENACAQwlAYxUllU0ep4aL9" - + "ap6RMEv4yJKdhJ2oDXQABtqHt76KMBEFpp4gUgAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAMElEQVR4ASSJgQkAMRDC4m3ym/qTdhR7WJAoZgIhX9rA/DbR" + + "2fkytkV9+ky5kLSECwAA//99UEdwAAAABklEQVQDAKv1DwQf8pyHAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAL0lEQVQIWzXI0REAEBAD0Y1OVCqd6kQ4w/vaWQXS0lmaCCTb" + "GTbljoocd5Q/XmoDijQRBTzmAeYAAAAASUVORK5CYII=", @@ -354,8 +355,8 @@ public void drawImage3ArgumentsPlacementNegative() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAAXNSR0IArs4c6QAAACpJREFUGFctyLERACAMxDD/KDTMGbbk0jC" - + "KKUClwlQ7RJANwaE5b1YV4buKVA5Xbm45TAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAOUlEQVR4AQAtANL/AgAm////AAD/Av/aAQAA2AAAAgH/IQAA" + + "KAAAAv8B3wCBgIAAAgEAAAGAgIABAAAA//+kky/SAAAABklEQVQDAFRaDQuxWv84AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAK0lEQVQIWy3IsRUAEBQEwd1SJOr8uvQkOnECJhzpSZYYCBM0" + "Lcf9ZlQh3wWKWA5Xk6MBwQAAAABJRU5ErkJggg==", @@ -373,8 +374,8 @@ public void drawImage3ArgumentsImageTooLarge() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABdJREFUGFdj/M/A8J+RgYGRAQrgDOI" - + "FAIPmAgWeg1g2AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVR4AWSIsQ0AAAiDsP//rB1MlxIGghYsQQOWoNRHjQMA" + + "AP//SMpI1gAAAAZJREFUAwCEdgIJz8+ExgAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAF0lEQVQIW2P8z8Dwn5GBAYggAM4gXgAAg+YCBUgKw5EAAAAA" + "SUVORK5CYII=", @@ -392,8 +393,8 @@ public void drawImage5Arguments() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABpJREFUGFdjZEADjFgF/jMw/GdkYABL" - + "YqgAADfmAgXboMAzAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVR4AWyKsQ0AAAiD0P9/1qZupoSJ0DxyGJC3+iiQmAUA" + + "AP//C9I1QgAAAAZJREFUAwA4dgIJmGt15AAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGUlEQVQIW2NkQAOMWAX+MzD8B8qAJTFUAAA35gIFxQ+VugAA" + "AABJRU5ErkJggg==", @@ -411,8 +412,8 @@ public void drawImage5ArgumentsPlacement() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACVJREFUGFdj/H+D4T+jBgMjAxQw/mdg+M/I" - + "gFfg////jIyMcC0AnzULBWgjtygAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJklEQVR4AVSLMQ0AAAzCGtTMv5q5YTuBQEKPyouJiAn6q19VuAwO" + + "AAD//wnhEpIAAAAGSURBVAMA4FAFBQG8BCwAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJElEQVQIW2P8f4PhP6MGAyMDFDD+ZwAKMOAV+P//PyMQwLQAAJ81" + "CwUd8tccAAAAAElFTkSuQmCC", @@ -430,8 +431,8 @@ public void drawImage5ArgumentsPlacementNegative() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABZJREFUGFdj/M/A8J8BCTAic0BswgIAg" - + "2sCAzQ3b+cAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVR4AWTIsQ0AAAzCsMD/P9MVlUhe4kCaBWrmNeMAAAD/" + + "/zfOO90AAAAGSURBVAMA3R8ICcQj3MsAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAFklEQVQIW2P8z8AARAjAiMwBsQkLAACDawID+0h1rgAAAABJ" + "RU5ErkJggg==", @@ -449,8 +450,8 @@ public void drawImageStretch() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAAXNSR0IArs4c6QAAACpJREFUGFctyLERACAMxDD/KDTMGbbk0jC" - + "KKUClwlQ7RJANwaE5b1YV4buKVA5Xbm45TAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAOUlEQVR4AQAtANL/AgAm////AAD/Av/aAQAA2AAAAgH/IQAAKAA" + + "AAv8B3wCBgIAAAgEAAAGAgIABAAAA//+kky/SAAAABklEQVQDAFRaDQuxWv84AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAK0lEQVQIWy3IsRUAEBQEwd1SJOr8uvQkOnECJhzpSZYYCBM0Lcf" + "9ZlQh3wWKWA5Xk6MBwQAAAABJRU5ErkJggg==", @@ -468,9 +469,10 @@ public void drawImage5ArgumentsImageTooLarge() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAJFJREFUKFONkMENAjEMBNclIBoIH0QF" - + "9z0XRA+Re6CgpZM0gO538DM4CaeDV1aRrI0mazuCQUnlzu66Evlh1dox1xpen4QAUkGPMwG49vhbr+EnQC4dhJ9c+UK2pSXm" - + "Q0u0BXH/k1hSwl21AjOJVMo2/Qbu93H3oGPI9urTQUL/S39BkmpmINnYwd+JOcc0DL4B84cwC7JlTrYAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAr0lEQVR4AYyOsQ3CQAxFv2mAEUAUSYMY47wFHTAOI9CQbHIe" + + "A9EkVKxAZ2wfSIkiJE5+vu/zl88z/HmKcauaNlnzMgWuHa8VsADCqHdCXjPSRQLXjte4lS/DSFqDzyvIdRG4drzGbmBU6tCc" + + "5nhU+8B15ieSvIrLcpkIUN33dGxbOjQNV10nUFvtC1B2tHsSIgJmBhFFLyaG+iQiEoPtkJnJnp3fE80wisnEUXdQvAEAAP//" + + "VmhWRgAAAAZJREFUAwCOaUMVSmui5AAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAmElEQVQYV42PzQ3CMAyF7Q2QukC4ICbotR6IHTA7MJC9SRZA" + "4kS5GdsKUWlVCSuS814+/wThz8DkTmbTS4AfnJKHll3TrOAQJmhxRr9cWvt7y6Hdx3MD0Y42yQxXfiZx40Pm0KTv3461FBCi" @@ -490,9 +492,9 @@ public void drawImage5ArgumentsStretchX() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAFFJREFUKFNjZCASMILUNQg3/K+PbGBoXN7" - + "AAKIZpzCAxZEBRGGDwH/7AwYMBx0uMNQ3fACpwq4QpvP/////GxsbGRoaGvArxOdcDJ24FA8FhQDPFBULZWbihAAAAABJRU5Erk" - + "Jggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAW0lEQVR4AdTLwQ2AQAgEwMUWbEj70Rpu7cCHBVGEfWgHqCQk" + + "p+Hh9/gsZIcOP8che5pNsMjs1yHmFboPeBJbxgCH5CmjqpRyYCFT6TAauYekxF3nC9bFd28BXgAAAP//HA3MPwAAAAZJREFU" + + "AwD/kxYV5nc6CgAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAUElEQVQYV2NkIBIwgtTVC9f/b4hsZGhYXs8AohmnMIDFkQFY" + "oKFe4L/9QQOGg/YXGOobP4BUYVcI0/kfCBoaGhgaGxvxK8TnXAyduBQPBYUAzvAVCzcdbJgAAAAASUVORK5CYII=", @@ -510,8 +512,8 @@ public void drawImage5ArgumentsShrinkY() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAAXNSR0IArs4c6QAAADhJREFUGFcBLQDS/wEAJv//QPbAAAFAHL/" - + "/MAfQAAG/CUD/ECfwAAG/QAj/EBj+AAFAvxn/MN76AI+DEbp3TIWcAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAOUlEQVR4AQAtANL/AgAm//9AHL//AkD2wAAwB9AAAn/tgQBf" + + "DaEAAgA3yAAAKNYAAoF/EQChRQ0AAAAA//8ndWI0AAAABklEQVQDAHWwDkGwhZlYAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAANUlEQVQIW2NkUPv/3/7bAQZGe5n9/w3YLjAw7ue0/y+g9gHI" + "sOf4LyD5j4HRYb/Ef4O7vxgAjuARs3OGyksAAAAASUVORK5CYII=", @@ -529,9 +531,9 @@ public void drawImage5ArgumentsStretchImageTooLarge() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAFpJREFUKFO10EEKgDAMRNE/R+mm9JbGW4ob" - + "jzJiUFetdGM2A+GRwIjJ0aTjD1ht70LVZNL/IoPZgAZXqg0gLrYO5ELm18U1giUiCxjCpx7bTih1m3iXF7xNF57OsB8LLeYw9AAA" - + "AABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWUlEQVR4AcSQQQqAQAwDJ/2JF/GZ9ZfixafEddGDsAVv5tBA" + + "mNLQ4KN+BWfbYB4vOod3wdbI2wuOkCdY4HEKhXWwZnJ5wfQ42mFlpuhN3cPReP1RamsjCjgBAAD//8KC5xQAAAAGSURBVAMA" + + "atMbENm3LJ4AAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAX0lEQVQYV7WQQQqAMBADE3/SS+kvrb8UL/7EmIp62kovBkJg" + "GXbDEoPiIIc/wCxpI5iFKxFfoQBhddNiO1k6IJV0cMekhJafG5daMdtNXfB5j5u6hUEretk7bODNhOAJzrgfCzJhsNQAAAAA" @@ -552,9 +554,9 @@ public void drawImage5ArgumentsNegativeWidth() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAFlJREFUKFPFzkEKgDAMRNE/R+mm9JbGW4ob" - + "jzJiUChixZ0hZDaPJOJe1fYqVE0mR5+jtwazAA2OVBtAXGxtyIXMt41zBFNEHhrC6w3bTig9/9jD3qT+Uj/CHbu+Hws0CMhTAAAA" - + "AElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZUlEQVR4AazOQQ6AIAxE0V9v4sZ4zHpL48ajjIUUE23c2QAT" + + "4BE68a5FEoiReV+gDoM9ZGY6CjTNsMJIsgqUnWzutEzTo8D42Nzd6J2qo7YU2A7HNItnufmEFhXmlp8w0GP8Dy8AAAD//z4L" + + "JNsAAAAGSURBVAMAB4kbFQG6XKkAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAX0lEQVQYV8WOQQqAMBADE3/SS+kvrb8UL/7EmJYKRap4M+w2" + "sAxNiLuipI1gFKqjTHt6VoCw+pK8dqYHkAo6uGNSQPHXH5ecMXtb5Dj6quGmbuFoa9ixB3um0l/0I3gCu8YfCw1yrNcAAAAA" @@ -574,9 +576,9 @@ public void drawImage5ArgumentsNegativeHeight() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAFxJREFUKFOl0EEKgDAMRNE/R+mm9JbGW4ob" - + "jzJiRSjUSsFsZvMIk4jJ0aSjh9n2LpRNTW7TQYPZgAJXqgwgTrYO5ETNr41rBEtErT+Ez3G2XaH03rGFrfnxnsFjT80oHwvhRbeC" - + "AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZklEQVR4AaTO0QqAIAyF4X+9STfRY663jG56lNOUGcQIgoZ6UD6d" + + "Ex/rB1wkgRiZHcuLOgz2kJnpKNA0wwojySpQdrK50zJNjwKjsbm70X+qjtpSYDsc0yyu5eYVWlSYW77CQI9xAQAA///FOIgeAAAA" + + "BklEQVQDAGECGxXylwAXAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAY0lEQVQYV6WQXQqAMAyDE2+yl+EtnbcUX7yJMf7BYJsMLJQ89KNJ" + "S3QWOzmUYJS0EozCpbiZAhQgLJ6MbivHBkgF7dwwKODUz41zSpjcj2Xd+j3OSZ3C1q5qxhzMmR/vaTz2AM0wHwuiBt/PAAAAAElF" @@ -596,9 +598,10 @@ public void drawImage9Arguments() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAIpJREFUKFNjPBXA/p+BgYFhWgQfiGJY" - + "EPGaEcxAA4zrA0zACh8ovGAQ+PCBIXHBF+wKFyQkXGHl4OC2v3ZNVPrtW27Gq1dxKIyP1zaNiDBVkZDIYmNlNWXU0cGuEGTt" - + "////HYBU/YMHDxwUFRUJKzxw4ICDo6MjboXYfInha2IUgdRgtQZrOBJrIgAUwCcL+6R7MwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAk0lEQVR4AayKIQ6DQBBFZ1cUgakhqWtS2bTpivqmDkdNU7tX" + + "6RE4Ag5ugEQSSHCgx3AABCAXBgWEcfzkJfPnP5l9LEPo0DEEMJE13IF4pBa84p7RAGRzvJXd6Ynf4tLq/MyLYMxPed7f8f0K" + + "oogXdRCUV9fFg1It2jYvzhdEnNfFLakJIZKR9xhBfYtJ3BrWv/3FAQAA//92obYoAAAABklEQVQDAK0fJxWpARh1AAAAAElF" + + "TkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAgklEQVQYV2P8z8Dw/4A9B0NjgwDDQQdOhv+M9xkZsADG/Q4O" + "/z/wf2F4oPCC4aPAF4aGxg/YFTY0NNxXevKEw+HiRQHZV684GB8+xK6wqalJ39/AwERNQiKDg5XVhNHQELtCkHP+//9vD6Qa" @@ -618,9 +621,9 @@ public void drawImage9ArgumentsCrop() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAFxJREFUKFNjZCASMBKpjmHoKlT7/z/h0wK" - + "G+reNDIq/H4D9gdUz2WJT/ptLnWTwUtrGILLuLW6F+x04/kuo/mVQMPzDwJn1H7dC0Vdy/0PW/GQomPCNQf3WZ7BCAChZHAtgVD" - + "PiAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZElEQVR4AeTQIQqAMBjF8YdgUotBFk0Gm2EXEKtNzHarBxHB" + + "bBUP4VUEDzAGO8C3tKUx1vfyr7x/gsBFABuihV30pTWZKM7XqzzRsxfFqIyDE07tBs5vZIPww/mpcHQl/j23UAMAAP//0Pds" + + "sAAAAAZJREFUAwD2WBFROHUfbwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWUlEQVQYV2NkIBIwEqmOYegqVPufFvdhgcnCV4kgT6SBPIzV" + "M3Fi81bbih8NSVGZy8C4HqIGq8L99uyrJVT/hWjY/WZgjMOjkOG/4uqEBZ9D5ie+AakCGwYAh4cWC3rmpLIAAAAASUVORK5C" @@ -640,8 +643,8 @@ public void drawImage9ArgumentsCropNegativStart() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAABdJREFUKFNjZCASMBKpjmFUId6QIjp4" - + "AAppAAuXjCs4AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVR4AezQoQ0AAADCMML/R/MBQSA3PVVrjLFC/XkCAAD/" + + "/3Nn3qIAAAAGSURBVAMAEzgAFbNrw9wAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAF0lEQVQYV2NkIBIwEqmOYVQh3pAiOngACmkAC8i6MuwAAAAA" + "SUVORK5CYII=", @@ -659,8 +662,9 @@ public void drawImage9ArgumentsCropNegativWidth() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAEhJREFUKFNjnK+Z8J+BgYEh8foCRhCNCzDO" - + "r+aBKGz9gl/hAQeH/fYMDA6MBw7gVwgybf78+f8TExMJK8TnNpgcXlOQDRgKCgFraBALDri0wwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAATElEQVR4AdTKMREAIQxE0b04uZIeAWABAxBlIAARadAFEyoq" + + "UpOZPyn2UXVlajCOkDp2FvyHlzK8wQAKIrHlbEMVzPzpv0W38dxegAsAAP//XAhpcAAAAAZJREFUAwCP3w4VdtN2awAAAABJ" + + "RU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAR0lEQVQYV2Ocrxn/nwEIEq8vZATRuADj/CoeiMK2L/gV7ndw" + "2O/w/78D48GD+BWCTJs/f/7/xMREwgrxuQ0mh9cUZAOGgkIA7moSC5sf8xAAAAAASUVORK5CYII=", @@ -678,9 +682,9 @@ public void drawImage9ArgumentsStretch() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAHBJREFUKFOd0LENglAUBdDzSmLNCO5g" - + "4QTG1jWo7JjCFehchgSdQxcg5BsSKPQHQ3j1efcmN6y8WOlkMLGfnovgMQd9wcQJFUo0wW0JvrDDgGdwyGDiiPuU1qPDOXiP" - + "+Le6xgUtrjPK4L8Fts+zlPoB1NMSC7MwsngAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAfUlEQVR4AZyNwQ1AQBBFhxL0IHESBThwFQ246kUFEg240Ica" + + "lOHshLdiJ/Yg2dj8l83+eZkNxfP8F0+R+CF9f+ZsRKgY9jBBCRpHpB2hgAQa0KjItpx2B9sddBHvO7aUQGShGWCFGWq6jfuO" + + "iubFoIMMWlDJzBzRFF94ixcAAAD///gP/JcAAAAGSURBVAMAeyASFSc4nisAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAaklEQVQYV2NkIBIwEqmOAUPhfwYGVahmTqDkJZhBKAqBiryA" + "EnlALArEi4CSE3EpfAuU4Abiv0B8GajQAkMh0DQboOBKqGm/gfRFIPYBKn4HUoxudTVQLBSIzwFxCUwRhkJ8IUB+8OAyFQDU" @@ -725,10 +729,11 @@ public void drawImageDataUrlPng() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAL1JREFUOE9jZEAFjgwMDOZQoZMMDAz7" - + "0eQJchmhKnhFGBi2CDAw6AcwMHCDxDYwMHz9wMBw8Q0Dgw8DA8NngiZBFYANFGFgOJjAwGDVzcDAgqyxlIHhzwIGhmNvGBjs" - + "STHQUYWBYf1tBgZ+bJpUGRg+3mFgCCTW+yAXVpQwMDSjuw5mOMiVPQwMtQwMDB3EuJImBlLdy1SPFFDQUDfZIAU21RI2MRFI" - + "lBpYTiFKMTGKRg0kJpTwqxkNQ8rDEABatjIVyjXhJwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA8ElEQVR4AeyQMYoCQRREH7LZIrvBHmE33lDYZJncQG/gIRRM" + + "jEwEPYQ30MBcTARDYz2CgSJmBlbJTGAzA92YOvyC6qrfD6ZrPH6Zjv1c9rJpUwDrX7D6hlkXhpa9M+HqUvTcgbq46MDfDj7G" + + "8GbZO3MXTdNiTco+4dcQ+Ydx5k5hJkWNgY0WvFdt512jqg9zA8PsqbOBmzlcqih5t6nqw9zA5RG2PbiGpTN3ypdS1BjIAZpT" + + "WP/AyRDL3pm7KFK+dAfKn3Xxfw/tCQwse2fupOgpgMUF/9pIB8teNm1CYNrtku0XsORREqPXGyY+WMn6DQAA//9HegNzAAAA" + + "BklEQVQDALe2MilY1lPyAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABF0lEQVQ4T+2SvUoDQRSFv5SC5UIUK30ACUFIbyws4wMsBkO6" + "RJ9AiBhUsEqvstoKVgELwdRa5cc6pTbGLqTUM+saNsvGHUljkYFlmDn3fnvPvZNicmV13AiunrW3I3riMfUTkYYT0dwlcMzd" @@ -836,12 +841,14 @@ private void draw(final String canvasSetup, final String drawJS) throws Exceptio */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAVlJREFUWEftlK1OA0EUhb9a3qCGBIvA" - + "gKgqQdQBCsFPQusJCkENlh9N6+tIsOAJaLA8AIYH4AXYQ+4mw4Syu8lta+4mm+zO7D1z5rtntsXvax0YAKfJ8Lk93wCHwBPw" - + "mdXlr23gGjgBroAJ8GYfae4OOJiik9ZuAF+qbTUwOgZ0D2dsNLV0W26yiVEJiNKzGT4Ceqa6D4yAZWAXeK1J9Ni6tGY6ae0j" - + "cA98AJ2/jL4ASxlpUUyJqiVnhaHtwviWmewAGt8z6nVaL6OrQL9o785/tU2I5ka1gHJbLqDFyoxfNiD6XtQ9VNXOw6gOVElN" - + "jUo3poM6E6PKzQpwAeh01iEqc6rbtDj9ZM4OZJVRdVFR6uZEK/46i5sOo97sg2gQ9SbgrRcZDaLeBLz1IqNB1JuAt15kNIh6" - + "E/DWi4wGUW8C3nqR0SDqTcBbLzIaRL0JeOtFRoOoNwFvvW9NqWN35u+ZcQAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAABtElEQVR4AeyUPS8EURSGh5YIlWzlR6xCqVNR+EhQkGh9tPwE" + + "arQSGo2IRKEVlWYTfoJEbC8kOp53MjdZY8adk9yCzdmcZ+7Hue+Zu++9u4PZ90+b4SH0xi4DQZOt8mhBLLTmlEXDoHqqSzcP" + + "5W7pqaX5EZoP2mmyuba8UeZrQy+dqc2mS3QptQ5vsAB5WDa6iWINzmEJruC9YJb2CT5BfZpGoZN6ZKV0QtrgqN6xRe4SWlUb" + + "3SAhUWCfseKYxxmswAeMwjgswxFMwRwsgiUeWDwAZe0Nc6o7T9ut2ugJCQkDe4yrQoV0PMrpzunIXhi8giUuisW/aqs2WuiS" + + "Nc9U2oEQk3R0TfTF6DYL60YnKHsPY9A0dGWkC1dJx1l3SuWaI0zcQbu80Q6T29AbBwyEjll/F3qp7qrmSGXXPPQrpcmCXm5p" + + "ThohXbhK0iuv9aohvfpVWtUYItkpb5S5vxm+0dTn4o66o6kdSF3P76g7mtqB1PX8jrqjqR1IXa/v7mhqg8z13FGzZRGBOxox" + + "yJx2R82WRQTuaMQgc9odNVsWEbijEYPMaXfUbFlE4I5GDDKn/42jXwAAAP//4JrchgAAAAZJREFUAwDXF0VVgodBgAAAAABJ" + + "RU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAABUklEQVRYR+2UPw4BQRTG7TU0Cu5Aq+EGFBqJhgsoFAolB6Bx" + "AEdAodC4BImGY/B9yRt51vqz8YTE2+RlZ2Znvvnm995slLl+KugOECU1PJR2F+8Zoh5bk9TNY3CNyCI2iD5ioSae0I7u6Oi1" @@ -991,8 +998,8 @@ public void globalAlphaInvalid() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAADxJREFUOE9jZKAyYISa10AlcxtoZmA9" - + "AwMDyHByXQrTB3ch1Q2E20BmWGK4kGYGkulAuDbaxTKlLoPrBwDnlwwLU3fVIAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAARUlEQVR4AczQwQoAIAgD0NWX9+flwRV41AVGQZe9lhPiRXCZ" + + "qzggaJ5mE9zOZVt6HP8ajvtE8cIvF5kXj2DfGWabxRwOAAAA//94K/bLAAAABklEQVQDALcXIRXO7FmwAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAS0lEQVQoU2NkoDJghJrnAKRBmBJwAKj5AMzABqiBIEFygD1Q" + "00EgbkA2EGQQyGByQD1QE8iskW4gKGDJjRRQCkGJFKonG3JiFqseAAjhEgvKgKaUAAAAAElFTkSuQmCC", @@ -1009,8 +1016,8 @@ public void strokeRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAChJREFUOE9jZKAyYKSyeQzIBv6n0HCw" - + "WaMGUhSKtA9DipwH00z1dAgAPKcGC8XskzoAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAMklEQVR4AeSRwQkAAAgCrf13LmkF9VVgP+vQhnmiB4ewimgH" + + "ooT3QV3PCYv5KaId/pYXAAD//7KhJgoAAAAGSURBVAMA6cMQFanju38AAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAKElEQVQoU2NkoDJgpLJ5DMgG/qfQcLBZowZSFIq0D0OKnAfT" + "TPV0CAA8pwYL+jNAvAAAAABJRU5ErkJggg==", @@ -1027,8 +1034,8 @@ public void fillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAACxJREFUOE9jZICA/1CaUoqRcdTA0TAk" - + "OQRGkw3JQYahYTQMR8OQjBCgfrIBABkEFBUHz6OrAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAANklEQVR4AezSMQ4AAAQDQPH/PyMRi7G6qRCTDhduXVGLMTaB" + + "lcdpBd4dZShDQEBvA6Ctk4eGCQAA//89UfTWAAAABklEQVQDABbFEhevU8KSAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALElEQVQ4T2NkgID/UJpSipFx1MDRMCQ5BEaTDclBhqFhNAxH" + "w5CMEKB+sgEAGQQUFQfPo6sAAAAASUVORK5CYII=", @@ -1045,8 +1052,8 @@ public void fillRectWidthHeight() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADdJREFUOE9jZKAyYKSyeQzIBv6n0HCw" - + "WaMGUhSKtA9DipwH00zTdDjqQvJCYDRSyAs3ZF2DPwwBbfkGFYXESWwAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAQElEQVR4AeySwQ0AIAgDq/vvrA1xg5NXIaG/QnOw9blaBx6H" + + "JW271JqwNlAJT7jMj7TtmisXBSbhf8jgPXcgwwsAAP//gPpVDQAAAAZJREFUAwDyABApkn0/fwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAN0lEQVQ4T2NkoDJgpLJ5DMgG/qfQcLBZowZSFIq0D0OKnAfT" + "TNN0OOpC8kJgNFLICzdkXYM/DAFt+QYVhcRJbAAAAABJRU5ErkJggg==", @@ -1063,10 +1070,11 @@ public void fillRectRotate() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAANRJREFUOE/d1CEPgUEYwPH/q/kCvoRA" - + "kRQbCkUQTJFtNp2MpmmCTZIQRJIkapIoaT4A4bnt3c3dvffuCrfddtvz3O+e5267iMAjCuzxm2ATOKS9Cr3lEnAB9sBU1l62" - + "Dm6BVkxYCnxPqsbBhqXVmcAvFxwHz0DZsuEp6NyGKrAHrFynS/wGTID1t3wFZoCRzGxC+ARU9Vz9UXKCDhOgNeDoAlU8L3DX" - + "AG+Ajq1lU0EVgetaQgG4pgHVnjYwBorAAhiYKvD9HPofdAc8QoHOt/Kt8A/AN1+PHBVxaGY3AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA+UlEQVR4AezQrw8BYRzHcZM1/wBJUQSKpAgEimSmSJJpbBqa" + + "IJigsdlsgqCZTdXMZpNMs/kHNPM+893O3T33wwSBfV7n7r7Pffbs8fu+/PsXPg80+7x+eDGeYZyeJRZIwHOMhc1XQ47/LUYI" + + "w3X0hRm+ykOfCg8ndBGAY/SFsjurjxq8PKMO20hhmVVJ2CXIsIcjSrCMFE6YtnCDUyIsGGMNU6TwzqSNEPpwE+1cTeukUAZX" + + "bmqIYgpVZgxsd8j8LQeeikhhBWMsd6ctMu5Qe6e34SGNAnbQMuCyh2WcCuWjOTcxVNGBMm4LpWDIzQXKeC1UFsng9wsfAAAA" + + "//9zeQ59AAAABklEQVQDAGucHykhpMwKAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA60lEQVQ4T2NkoDJgpLJ5DEPTQCFgMLwjNyjQvawANOgyEC8B" + "4mYgfkaqwegGrgAaEA415DuQ7gfiDiD+TKzByAZaATUdxaLxFVCsCYhnAvEfQgYjGwgyDGQoLnATKFEJxOvxGQozMICQQiRD" @@ -1088,8 +1096,8 @@ public void rotateFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADdJREFUOE9jZKAyYKSyeQzIBv6n0HCw" - + "WaMGUhSKtA9DipwH00zTdDjqQvJCYDRSyAs3ZF2DPwwBbfkGFYXESWwAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAQElEQVR4AeySwQ0AIAgDq/vvrA1xg5NXIaG/QnOw9blaBx6H" + + "JW271JqwNlAJT7jMj7TtmisXBSbhf8jgPXcgwwsAAP//gPpVDQAAAAZJREFUAwDyABApkn0/fwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAN0lEQVQ4T2NkoDJgpLJ5DMgG/qfQcLBZowZSFIq0D0OKnAfT" + "TNN0OOpC8kJgNFLICzdkXYM/DAFt+QYVhcRJbAAAAABJRU5ErkJggg==", @@ -1106,8 +1114,8 @@ public void fillRectTranslate() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADFJREFUOE9jZKAyYKSyeQyjBlIeorjC" - + "8D+5Ro8aCA+5wR+G5EbyaNYjO+QQGkdg8QUAebwGD4ULeHoAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAOUlEQVR4AeyQwQkAAAgCq/13Ll8NYNEnQ6GXHBe2fBqcCz1z" + + "mGClekYIQC4ibG+Oj6ocwtwwDx0WAAAA//9NhoXGAAAABklEQVQDANhvDynTI/KmAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAMUlEQVQ4T2NkoDJgpLJ5DKMGUh6iuMLwP7lGjxoID7nBH4bk" + "RvJo1iM75BAaR2DxBQB5vAYPhQt4egAAAABJRU5ErkJggg==", @@ -1124,10 +1132,11 @@ public void translateFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAMxJREFUOE/t1LEJAjEUxvH/gYKVjStY" - + "WYlOYOMGCnYOYeEKYu8INo4gOICgnaWCYCEIghvIgzx4hODlTBrBQLjj8vJ7+VJcQeZRZPb4g+k3+lt3OAIOwCUluI18AjrA" - + "w8FH95Qm19gmCjaB14dNd4Nro1uoXsEBsIs9hasT0KbYSzoFZ8CyImjLz0BbPii4BiYJ4AYYW3AF9IA+UPsCngMLC6ohJxZU" - + "cXmXWTaGwDYEhjbWvQbSrOsVtoBnLBhq0vCSTG3EsjiV1rP/HN50hx8VahodiQAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABC0lEQVR4AezQz+pBQRTAcf0Wv/ptfjtloZSlnX9l4QGUopS9" + + "slCUB7AQCw8gZWGhPICilCewUMgLKGWhKFkqiu+RGbqkm2vH7XzuPTN35sxpfmxvfr4FrV/oh99hkht0w1Lc3mGJSjOs0EcF" + + "CbhgOlTBf3Z4IGHnFUEBbcyxRA9lxOHEw1AF/Q//XicdpFEU0cHiostX5uSfNGIzW5B9dyFdxpiVrqt819AFfTKwYKL2qg63" + + "TAxxwCsxVptUwSwTIfwiiAwa0AvJn8Vdh2rxkWQEKSZFA+RyiByWI29iCmPog1WHxgW34z0DuY463zS8+EMYebSwwTnMFDwv" + + "NLx2jAeoIQUdrxbUBYzJCQAA//8yJyR8AAAABklEQVQDAF8lJymD/dqYAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAyUlEQVQ4T2NkoDJgpLJ5DKMGUh6iQysMlYEefgbE3ynxOLKX" + "bwANUgHim0B8HglfALLfEWsJzEBOoIYvQMyEQ+MjNEtAFj7GphZmoD1Q8gCxroCqe41kyTkgexVIHGZgBZDdTqKByMpBwaSB" @@ -1148,10 +1157,11 @@ public void rotateTranslateFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAALZJREFUOE/tkjEKAjEQRd8ewXoLK23s" - + "1kZ7j+IRbG3st/M6tlYq2CxYCl7CTgZ2liEMMm5WsDCQIiR5b+YnBQOPYmAef2B+ol/LcAzc8+uje+U1sAfOwMXM66cSbbkE" - + "Hs7lZwu3orcSm+ERWAYqUol0oqJOYoFbYBcAekdqYCMbFjgHTj2BDTBLgbK+AdOeUAE23j8cAVUyIxJpuY5+bJVILCqbJJ0c" - + "gFUU6KXgSRY5QDfq3we+AOdFHSeUoHcMAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA4ElEQVR4AeyQsQ4BQRCGNxq9B6Aj0aipKbwBpZqad0BHreYF" + + "qJSoJGpqLa3SNyeTbNaKc3uN5C7z7d3M7fz/zuZMyk8mGH6h/3OHpfBhXwo6cov0ATuYQQ9q8HOo4IbOPDRgAAs4gZjsecc2" + + "UcErTQdwQ0zqFH0mc+pvk6gg/4ycUt7fUJM+G3WSKd9R2ILrqJJsaWubLXikeIYkUaVJMLYgNVNhKUAThrCEuCbRKV1B+s2d" + + "ZQsT6IJtMiJfwQXc+CjobpRcTcYkHSiDTqImRan5Tkg9VvhMbiGCXtfUBZ8AAAD//zEggMEAAAAGSURBVAMA7bomKdvSkgUA" + + "AAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAxUlEQVQ4T2NkoDJgpLJ5DKMGUh6iNAtDaaDb3gHxd0rdCHNh" + "AtCgOUB8DYjPIOGLQPZPUiyBGSgF1PQEiNGD4A9Q7AqaJZeB/F+4LEE24ARQkTkRrgEZdgnNEpClf0F6kQ2sAPLbiTAQm5JO" @@ -1172,8 +1182,8 @@ public void transformTranslateFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAC1JREFUOE9jZKAyYKSyeQxwA88wMPyn" - + "xHATBohZowaSH4q0D0Py3Yaqk+rpEAAqPQwLveqeQwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAANUlEQVR4AeSQOw0AQAhD350m/CvAEyygoDDRpOnW32cYe4YO" + + "obCH7jXsBFUvNzR4CimMf5gAAAD//8jOg4wAAAAGSURBVAMA0CMgFVJk6gcAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAALUlEQVQoU2NkoDJgpLJ5DHADzzAw/KfEcBMGiFmjBpIfirQP" + "Q/LdhqqT6ukQACo9DAtpppU3AAAAAElFTkSuQmCC", @@ -1190,8 +1200,8 @@ public void fillStyleNullFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAC1JREFUOE9jZKAyYKSyeQxwA88wMPyn" - + "xHATBohZowaSH4q0D0Py3Yaqk+rpEAAqPQwLveqeQwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAANUlEQVR4AeSQOw0AQAhD350m/CvAEyygoDDRpOnW32cYe4YO" + + "obCH7jXsBFUvNzR4CimMf5gAAAD//8jOg4wAAAAGSURBVAMA0CMgFVJk6gcAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAALUlEQVQoU2NkoDJgpLJ5DHADzzAw/KfEcBMGiFmjBpIfirQP" + "Q/LdhqqT6ukQACo9DAtpppU3AAAAAElFTkSuQmCC", @@ -1208,8 +1218,8 @@ public void fillStyleUndefinedFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAC1JREFUOE9jZKAyYKSyeQxwA88wMPyn" - + "xHATBohZowaSH4q0D0Py3Yaqk+rpEAAqPQwLveqeQwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAANUlEQVR4AeSQOw0AQAhD350m/CvAEyygoDDRpOnW32cYe4YO" + + "obCH7jXsBFUvNzR4CimMf5gAAAD//8jOg4wAAAAGSURBVAMA0CMgFVJk6gcAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAALUlEQVQoU2NkoDJgpLJ5DHADzzAw/KfEcBMGiFmjBpIfirQP" + "Q/LdhqqT6ukQACo9DAtpppU3AAAAAElFTkSuQmCC", @@ -1226,8 +1236,8 @@ public void fillStyleUnknownFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAC1JREFUOE9jZKAyYKSyeQzIBv6n0HCw" - + "WXQxEFcwEPIBTheOIAMpjGSIdqqnQwA/UgoLxnfNlgAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAQklEQVR4AbyQSQoAMAgD0/7/z20QPKYeahQXcB3caBbrwkPY" + + "H+M4YCWMC3RLGNO1jhDWGI8OK2H+Tt3Puoox1054AQAA//8XBWeFAAAABklEQVQDAPFbEBXPTi1HAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAALUlEQVQoU2NkoDJgpLJ5DMgG/qfQcLBZdDEQVzAQ8gFOF44g" + "AymMZIh2qqdDAD9SCgsSO8biAAAAAElFTkSuQmCC", @@ -1244,9 +1254,9 @@ public void clearRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAF1JREFUOE9j/O/C8J+BioBx1ECKQ3Mk" - + "hyHjHgZGWABSkpTgYYhsILaYIdYSog0k1hKUWCbkSnxpCuaDIWYgupdICQKsXiYm3+GzBGQoVbIezBKqGYjsM6q4kKYGAgB9" - + "kkg955Wz+gAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAeUlEQVR4AeyTSwqAMAxE257NY3u3ShavzCIGNXEhWAhJy+Tl" + + "Ax1za7PSRis+PzC/0A/tsO+tY5nB3ZEBq79axAV6yQon9nQLaN/PE0RvgM2jW0Aesv5doI2t9qTbsEOFE58VYY8h0EsGrF51" + + "t4GaTAzc7iVAA2HlwAMAAP//TK1liwAAAAZJREFUAwBzV2BR34pW7AAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABBklEQVQ4T2P878Lwn4GKgHHUQIpDc+iE4VOgX4WAmJNSP0O8" + "zMiwgEGAIYXhPYMW0EATMGYE4v8M+kA2OymWwMLwGcNuBhlGRtRE/r+BgYXhKIMO3BKIZbpAVWy4LEFEChODBeMuhpOEXPM/" @@ -1270,9 +1280,10 @@ public void transformTranslateClearRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAAXNSR0IArs4c6QAAAHVJREFUOE9jZKAyYEQyL5GBgWEXAwPD" - + "U0rsgBmozMDA0MLAwODGwMBwF2owyPBDpBqO7EKYXjuowSDDQRaBDIZhgq7HZiCyo6SRDHdnYGC4Q8j1hAxE9zHM9SDDlaCG" - + "10CDCayWVAOxuX4+siAlBmKNr8FvIAB+fhILDX78/QAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAoklEQVR4AayQKw6DUBBFmy6hlZX1dUUi2QOSPSCRSFgDkj0g" + + "kUjQSCR74EyG4ZOQAAFyz7wZ8ubm5j0fN39LwwDvD1ySGX5x8aCGCmJw4bTMsGXThzeEIEooPeRwOL0ZsjOppIvAgR8UIOkb" + + "zt30W4bsTeroMpD0L05Ln9JbenkuRtWeod6aq6X/88vSy3Mxqs4a6pZWS6/TWK8Yjhbr43bDAQAA//8nEaLcAAAABklEQVQD" + + "AC1bFhX1lozgAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAAY0lEQVQoU2NkoDJgRDIvGsjeDsTvKLED2cAlQIM8gfgO1OBt" + "QPoUqYYjGwjTawY12AtIq0ANB7mcKNdjMxDZUUJQw0EuJ8r1hAxE9zE218cgKyLVQGyuX0otA7HGFyUupI+BAC5XEQsxJDCz" @@ -1291,11 +1302,11 @@ public void moveToLineToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOlJREFUOE+t0z1KRDEQAOBvS+32AHoI" - + "EbzAoh7ARhAR3N6txUL8W7CzshEbwcbOxhU9idVaWNsoFoL6Igm8Qpbn20kzIWG+TEKmI3h0gj0F3M9wia3PKeAlvrHdWsqJ" - + "dfAL/SjwAJ84jAKP8IHjKDBB7ziJAq8wg7UocAG3WMcrXnL8t1//2DtYRhdzeMMI9zk2wid1Sqp6FStYwg2uq/ndJLlp681i" - + "CwM8Vbc4w8NfcFOwnpu6KX2z9ObD6qBxfbMNWPJPsYk9XJTFacBkLOI8P8MunqcFS2GpITYwHwUmuIfHSPC32nDwBzgGJBXR" - + "dXO7AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABB0lEQVR4AbSTrYoCYRSGZ/cOdtuG/UmbNi0sLIKYBEXvwCaC" + + "dyBqMlkMYhEULIrZYrQZNIjBYhZsJouY1OcNn4wiIp5xeJ9zZoY5z3zDzDx7AW8PE5ZYqKDZ4lb4geYdzHFCifYqVpxwiWgB" + + "5jih+s5sQyARzXuiBPrIeim/SM1xK6xi+ocw/MAL3BUnnDJdgTw0YQZz0I1i9JvjhBqoURIQAn2TKfoKCrCFDsThavzC8wu1" + + "6jInI/AKI9BN+/QoXMw1oX9gw0EdvqEHbWjAF5zkVqF/qMXBG6xhDBk45h6hG86xk4QsdOETPItQ8xPKH+i3HdLNQjlEkZKG" + + "wIRyDVSsjyzHCQcAAAD//yNQAOEAAAAGSURBVAMAnuoiKaqIdsMAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA4klEQVQ4T63TzwoBURSA8RmvwMpOUqxslaews7HyAv4nNhgp" + "SizY2nsCeQh7axt7C4UF39G9NVLTNHNufRlTfnMa97qO8nKVPceCI+A3jeM+wIIToBd5WmAT6ElbLVAme9BUC2yZCTdaYAco" @@ -1316,11 +1327,11 @@ public void moveToBezierCurveToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOhJREFUOE/N1LErxVEUB/DP+xNke4OS" - + "LAZlNkmxSIoy2ZRks5n0bDIoI6NNBmWQUW+RgZXF8AazySi/I7+6vXp63juDW3e59f3cM5xzGpJPo/B28YrnnzvQVyV4jElM" - + "YQT3uMMtnvrVS7DMjGIW81jCO85xio/f8F5gd2YOm1jEIY56of2CdX4a+1WlTezgsRv+K1jnt3CCdVyV6KBgGAu4xgpuanQY" - + "MIxlnGEGb/EwLBjGAcaxkQWG08EaHjIqDHAPY9jOAieqIWhHO2WBUeULVjPBy2oPXGSCsVw6mWALn5ng97D8f/ALi58fh0da" - + "GhQAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA+klEQVR4AazSPcuBURjA8btnfIZnf8iCQbJQZFM2RZRMJmX3" + + "EmUio08gm5VMBspiNFmYLcxSfAH/S+FE5OXS9TsOOf9O3X4s5ZcZLNNOwYOPxww6qOQxwg5j1ODHy2MGS5yKwwk32vjHAHMU" + + "8YunYwbNH275MEQBLlQQxBpVPJxHwdsDU77IIoowZgjgbl4Nng8u2KTRhUTlIbK9zrvB88kOmwR6iOEynwYlMGHJQG5r4/00" + + "3wQlIA9ObtuSD+LboDTqLBGEYGkEpSP/2ZxstIJ9Ykmo3XBF7ACf1g1pWUsWr2ZwQ9CuGdwT/NMMNgg2NYP0LLWnfIrJcgQA" + + "AP//BP9DGwAAAAZJREFUAwBBPSApbk+eOwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA10lEQVQ4T83TMQ4BQRSAYRuFjqj2ANxAIdFzAEqN6BWipyHU" + "FBuF3hVcgEohGr0rqEThf5sZmWLEMq+wyZ/MbjLfTDKzUU75iRyvz3hPl5A1XHAD1KDYwILb7lkXcUE7p2xgwW1bxks6foJ9" @@ -1341,8 +1352,8 @@ public void moveToQuadraticCurveToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADRJREFUOE9jZKAyYKSyeQyjBlIeokMr" - + "DP9T6GGwb5G9PAINpDAIIdqHVrIZ9TJ5IUD1WAYAYokEFfnLcNAAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAOElEQVR4AezSsQ0AQAhCUe7231mJK2D3NcEOixe/lucO5qBw" + + "w7JgEtcluOEzQhLXRTccg3QB/7ABAAD//9S22NcAAAAGSURBVAMAml4QKQrN4ykAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAANElEQVQ4T2NkoDJgpLJ5DKMGUh6iQysM/1PoYbBvkb08Ag2k" + "MAgh2odWshn1MnkhQPVYBgBiiQQV+ctw0AAAAABJRU5ErkJggg==", @@ -1359,10 +1370,10 @@ public void lineWidthMoveToLineToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAL9JREFUOE/tkr0NwkAMhb+0SNRQsAM/" - + "PWILaGGMlClAbAEFDYzBAEAmgBK2QJZO4ohs4qCjw80V9/T5PdsZiStLzOPnwBYwAU7A4xv3msML0AeuAXwOr6uJBlwBueHu" - + "FsGXmkYDjoGjI+4AKKs6ayl3oFMDlRRrL3ADzGuAkkIW+FaWwymwd8TuVq/BAraBHTACeh/AC2Ab/3sOW4DDAJcGcZMDMGsK" - + "1AzGTYoUQHMKnsiO3bwkf2Cjcani5DN8AnFEGRVy9qdcAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0ElEQVR4AeySPQrCQBCFg6UXsBL0BN7A3kZBj2OjIHgZbRT0" + + "AN7BUhsLrQVrvwcSsjubNSzbCIb5sn+z702GtIrMz+8JtunACDqQFP4nv1BZwx0usIE5NDbxBblbHPSCPsxgBdqTyZX5FmTC" + + "YCMkeLRp5U6P2RRkMmA0ERI8kfWAb6E2mJyQoJJiVepcZBccomr+hliFOy7cIBamyjrBJyoT6H4YMy7AN2ksyN0yVOWe1RJ8" + + "kzN7TtRV6CQFFlUT5zhV0BGpLv6C1W6kzbP38A0AAP//p8YVwwAAAAZJREFUAwDiUB0pG3Y4HQAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0klEQVQ4T2NkoDJgpLJ5DDQ3kA3o4iggPgvE14D4L6k+wObC" + "E0BDzIH4OxBfgBoOsuAMEF8nZAk2AxuAmupxuOwH1JKjQLoUiP+jq8NmoAVQ0XEivGoJVAPyDQrAZiBI7AkQSxEwtBEoD/IN" @@ -1383,10 +1394,10 @@ public void setTransformFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAL9JREFUOE/tkr0NwkAMhb+0SNRQsAM/" - + "PWILaGGMlClAbAEFDYzBAEAmgBK2QJZO4ohs4qCjw80V9/T5PdsZiStLzOPnwBYwAU7A4xv3msML0AeuAXwOr6uJBlwBueHu" - + "FsGXmkYDjoGjI+4AKKs6ayl3oFMDlRRrL3ADzGuAkkIW+FaWwymwd8TuVq/BAraBHTACeh/AC2Ab/3sOW4DDAJcGcZMDMGsK" - + "1AzGTYoUQHMKnsiO3bwkf2Cjcani5DN8AnFEGRVy9qdcAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0ElEQVR4AeySPQrCQBCFg6UXsBL0BN7A3kZBj2OjIHgZbRT0" + + "AN7BUhsLrQVrvwcSsjubNSzbCIb5sn+z702GtIrMz+8JtunACDqQFP4nv1BZwx0usIE5NDbxBblbHPSCPsxgBdqTyZX5FmTC" + + "YCMkeLRp5U6P2RRkMmA0ERI8kfWAb6E2mJyQoJJiVepcZBccomr+hliFOy7cIBamyjrBJyoT6H4YMy7AN2ksyN0yVOWe1RJ8" + + "kzN7TtRV6CQFFlUT5zhV0BGpLv6C1W6kzbP38A0AAP//p8YVwwAAAAZJREFUAwDiUB0pG3Y4HQAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0klEQVQ4T2NkoDJgpLJ5DDQ3kA3o4iggPgvE14D4L6k+wObC" + "E0BDzIH4OxBfgBoOsuAMEF8nZAk2AxuAmupxuOwH1JKjQLoUiP+jq8NmoAVQ0XEivGoJVAPyDQrAZiBI7AkQSxEwtBEoD/IN" @@ -1407,8 +1418,9 @@ public void transformFillRect() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAEFJREFUOE9jZKAyYKSyeQyjBlIeoiM4" - + "DBUYGBiSSAjBOlxqkcOwiQQD5zEwMDzApn4ERwoJwYdf6WgYUh6UVA9DAJn9AxWRWUx3AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAT0lEQVR4AeyRsQ0AIAgEjZM4qYWTOopPQWIBiQLlG7DwzYUc" + + "vRUfAvNC6bDO4QBqfTS+2qVL2XbsvsoAZqhACSeu13YHuIHg5YtAOgwYOAAAAP//3hzLLwAAAAZJREFUAwDgrQ0pRqECRAAA" + + "AABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAR0lEQVQ4T2NkoDJgpLJ5DKMGUh6iIzgMBYChV0BkCH4AqpuA" + "Sy1yGIIMBBlMDAAZCDIYA4zgSCEm3IhSMxqGRAUTXkVUD0MA33oEFT5oGBkAAAAASUVORK5CYII=", @@ -1426,9 +1438,9 @@ public void moveToLineToTransformStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAGZJREFUOE9jZKAyYKSyeQyjBlIeoqNh" - + "CA5DFgYGhj/khiauMHzAwMBwm4GB4QISvkqMJfgiRZuBgcEADSNbAGJjWEJqLKNbosrAwKCA7HJSDcTma5Qwp4aBKJaMGkhM" - + "SsOvhuphCABLbg0VZ88YdgAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAi0lEQVR4AeyRvQ2AIBBGjXEFe3sbl3AKl7BxChuXcAqXsLG3" + + "dwUL3zVcJPgXsMPwyEngXfhIk8BfFPoHGjP8J8PMR+t6lB3hChP00EAJr4ZLKAcLphZmqGCADR6bXAk5myxMI3RQQw52E7kJ" + + "yzruhLpLK7uJ3OSU+VehqrWSzM1fCKGRSRGFkoIfBwAAAP//6D4DfwAAAAZJREFUAwA4kBEpb4W4rAAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAb0lEQVQ4T2NkoDJgpLJ5DKMGUh6io2FImzBkAxp7DYhvAPFF" + "IL4EpW8B6X+ErMQVKfxAjYZArAfE+lBaCUjfQ7IAZNF5IP6IbAkpscwE1KiGZAHIIg0g1gLiXzBDSTGQkG/B8qMGEhVMeBUN" @@ -1448,8 +1460,8 @@ public void transformMoveToLineToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADNJREFUOE9jZKAyYKSyeQyjBlIeoiM8" - + "DBsoDEGwfuQwpLqBFDoQon2Ex/JoGJIXAlRPNgCWIAIVwMrcFwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAPklEQVR4AeyRwQ0AMAgCSSfv6LWscPLDRH4gOY+Wp4EcaBnu" + + "MrwTR3bsUvQppN335hv6ApUoQ1rO/jY0BiQPAAD//0ygKtcAAAAGSURBVAMAjggQKb2HceMAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAM0lEQVQ4T2NkoDJgpLJ5DKMGUh6iIzwMGygMQbB+5DCkuoEU" + "OhCifYTH8mgYkhcCVE82AJYgAhXAytwXAAAAAElFTkSuQmCC", @@ -1466,10 +1478,10 @@ public void moveToLineToRotateStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAALBJREFUOE/t0rEJAkEUhOH/cjGwAhEs" - + "wSYMLMEmNBCNNbcJ0RosQrAEMRYzOTCQB/Nkg3PZXQ0M7sU7H8OwFdADbvzoKmAP3IENcPnWNbADLIGF0DXwKIUN9OsDK2Ai" - + "eFuChqDnR2o8FLzLgZtAz48FPwGb4ZgCx0DPTzXFWY1PMTgF9PxMjQ+Cr01wDmj5rtB58CPqEM4FPTsQbLta4/eVgh9nbMGU" - + "rxt/0274hxu+AE0JGRUWB25NAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA1UlEQVR4AeySIQsCQRBGF4tYLYKIoEGz3WCxGbSatVhsIkax" + + "2kRMBpvYTQajYDWLv8Ag/gDfhIFdOI7b9eLB95jZ8L0wbM4YU4TUIsItth1U4e+IcITlDS9YQQGCI8Iv7QXUoQQinjKDIkIt" + + "imjMowcdeMAQvGILtXhnGcAMJnCFLiRKlFCLZ5Y27GEDJ2hBbOKEWjywNOEGF5BfUWFGJolQi2uWGnxA7r1k5sGJj1CKIpuz" + + "NKAMfXDiK9Tyk0X+75HpJFToSOxHJrSvEbZnNwy7m936AQAA//9brpUoAAAABklEQVQDAI8+GinfMmcuAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAvklEQVQ4T2NkoDJgBJo3FYg/AXE3EL+j1HyQgZxAXATEaVDD" + "JwPp7+QaDDIQBkSBjAYg9gHiFiCeD8R/SDUY2UCYXjUgowuINYG4GojXAvF/Yg3GZiBMrzWQMQOIfwBxARAfJcZQfAaC9DMB" @@ -1490,8 +1502,8 @@ public void rotateMoveToLineToStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADdJREFUOE9jZKAyYKSyeQzIBv6n0HCw" - + "WaMGUhSKtA9DipwH00zTdDjqQvJCYDRSyAs3ZF2DPwwBbfkGFYXESWwAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAQElEQVR4AeySwQ0AIAgDq/vvrA1xg5NXIaG/QnOw9blaBx6H" + + "JW271JqwNlAJT7jMj7TtmisXBSbhf8jgPXcgwwsAAP//gPpVDQAAAAZJREFUAwDyABApkn0/fwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAN0lEQVQ4T2NkoDJgpLJ5DMgG/qfQcLBZowZSFIq0D0OKnAfT" + "TNN0OOpC8kJgNFLICzdkXYM/DAFt+QYVhcRJbAAAAABJRU5ErkJggg==", @@ -1508,11 +1520,11 @@ public void rectFill() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAPxJREFUOE/F08EqRVEUAND1PkL5AEli" - + "qgxRb2Cg5AswMREDmZqLwctE6T2lZCDlB0wYGBmIJF9ARr6Au3WVbq577uvGGZ7a6+x99t4tDZ9Ww54/Adf4fGgRT7jAGV5T" - + "qilmGNg0dnJsEksYze/2q9AiuI4bXBUCx9HFIzbxXAYXwVu08VISsIcxTKWCpzjGeVVpqeAKZjHXFDiAa8zjrh/0pzmMLKOz" - + "E02B4RzhDat10bJNGcRJNpOX2KqD/rZ6QzjAfZ1Mq3Y5Mt3GCJZTGlUFflUbjdrAA3r5JAznjdv9/iWpYMTESC1kazmDwA6z" - + "/31Hp18wqTd1Mvwf8AMXuSUVr2KpOAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABG0lEQVR4AdTSsStFURwH8Ms/YBJ/g8iglIFiMBjEYJBSlLKI" + + "Una7gSwWBiWDRAaDMhmUMsgi+QPIZDf4/AbDPTnPu7e3vNf3c8+7953z7d53bmfR4k97Fq77FzZ44oxVumkq6SNH2YSVj0xy" + + "whT3RLGhcdLCDtN3uOODS6aZZZljeskmLVwy85U0zy4M88Up2aSFUTaSnV0Ua34bJ5u08NbMeDRDvaSF52r6GKBW0sJPLbEp" + + "h8ZaSQuj5MDhhX0q56/CKNly6GebSskVvmtZYYxKd5or1FO8OczTxQNNbVSjQh1F3OmiL0dccMUMPYyySSn/Ff5Ojo2KF/7a" + + "hQVuGOKbUpotjEXxSkXxnJNBdtmjlCqFpYW5k5YX/gAAAP//sifpEAAAAAZJREFUAwDzBigpOdOYUwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABAklEQVQ4T72UvQ4BQRRGbaOT6L2AQqHTeAK0HkAnkSgoJOIn" + "QYSEREGn0mppRCVRKMVPPIBapVBIOLeQyMTuzLKxySlm987ZOzvzreXz+LI89vn+IozSdQWCcIYpzE1XonYosi404AoyToMf" @@ -1536,11 +1548,11 @@ public void ellipseStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOlJREFUOE/NlL0OAVEQRs+UCrVai8Qb" - + "aK0HUCslOk+iU6hovQC1JyBCq9cqlMPdrGTt/dtNNmLqmXPnm/nmCjWH1MzjN0BVEqAJXEW4VFFhdajKHhjmICdgIcKmDPgL" - + "mHW28xSah2Yi3ELgInAMbAMFTyAR4eDLKQJ7wDki7S5CqxTQJKlyBPoR6EgknbUVrqVMgHUEuBJhWgqYdWkWY6zjC69sp7FV" - + "aUPqv0YA6pTtvRRVBpDOyQd1yg6eXgTqlB295Uz+0jNTS3YU+JmhKmb784KlLNmlgTlw931NHeDh8mJlYOyD+H/gC77COxVH" - + "Ilo+AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABBklEQVR4AdSTMQ6CMBSGq5uDq7uzJnoCV2HTQVfdTLyMV5BV" + + "DoCzJ9AE4sgxHPGrgcTSvgoJi+T/81r6+vFegb7q+PpTYFGoAG/wpO2JWC0DuQJJ8AWnzO94x7iRDCAbA3Yt8bdmTM6sJXjM" + + "2CsDSOYQS9IPy4AupAR9vw586pseD1iLsSgD2OuplMwH9mlElbpaZ44BLDNOZfSFtbRoAakyIlm/aYKolbRiAcvEI/GFJYlt" + + "O4FUmUPS5+SDOtt2AoEpoDeiD+psWwQCq6D693OdqbNtL7CE5lQbMt7j+idltf0TCOQjoBGeM5niLQ6ZH4iGGgOrXUAyHGPX" + + "MajWwAosxc6BbwAAAP//HE25RwAAAAZJREFUAwAtrTgpYLf2KQAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABKklEQVQ4T2NkoDJgpLJ5DPQx8P9/BmGgyxWB+CojI8N3UnyB" + "4kKgQcxAzVuA2ANqyF8gvRqIW4AGXyXGYHQD7YGaDmDR+B8oNheIS4AGf8RnMLqBPkDFm/FouAlyPdDQB7jUoBsICrd7BLz2" @@ -1565,10 +1577,10 @@ public void ellipseFill() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAKhJREFUOE/t1CEOAjEUhOFvBRKB5wJY" - + "DBqB5QIcAwFHAMEZUGgSLAKNwXIBPAKJgSZLQmB308LKrWsy/TMzr22m5pXVzNMACxtt4R7bdVWHbWywxboO4A5nzGJhQVfm" - + "cIgV+imwKuAcnVR3/wCXuGLxmeDXyCdMcYgFBl3ZUIK7HsZF/cZcmy72+eERLpg8Hd5SgS99mPgg3xyLYr6Dm88h9V1862vv" - + "8AEQFhYVPMxY1gAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAvUlEQVR4AeyQsREBQRSGjRmhDjSgArFAqgG6EFACVYg0IBWI" + + "JVINyAUa8H0zBDfrrd0hczf/d7f33rvv7rbb+fHRCr/f0JI97NW8JifsI9rDHIqTE+6wXGALxYmEYwwDWEJVIuEIywGqEwk/" + + "iTYMrCBJJDwxOYEo9pxJ+pHwyOQV/BIujViz50yj4U0ktDfjNIQzKBHX1uxRTpMT3hmfwgJuT1xbs0cpTU74mvbX1tyIa5Zx" + + "SoTx0286fyh8AAAA//8Yjg1hAAAABklEQVQDAE+RGClJbfH3AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAArElEQVQ4T2NkoDJgpLJ5DKMGYg1RcaDoS2LDmlAYJgINegPE" + "m6lhYDfQkG9AXE+sYSB1uFxoAJRrB2JPUgzDZ2AeUFIZiPOpZWAa0CBjIE7HYeBsoPhJIJ6DLo/Py0VAxXE4DFwKFO8A4svE" @@ -1589,10 +1601,10 @@ public void arcStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAALRJREFUOE/l0qEKwlAYxfGfT2AWbCbB" - + "brEYrAarj2EwqkX0ZQSzwWKxmC02wShis+g2loaDbcwgu3DL5Z4/5zvnq2Ee3CLnjVpSGD6EwKLQJG9eUeAsCHdRpJUvmqpm" - + "+D972Ec3bu6IfYHmo5aX6KCJXQwZ4IoxnjnAEfCMLaYJ4RptDPMCb2ikiE6Bw0mO8SOHB/RSgKHLO1YZXf4GWPrIpZcSrs0I" - + "dVzirFp4YINXxvyibx97bTIVviNnOwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0UlEQVR4AeSULQ7CQBCFBwSOEDyOG2DQCDQJlwEHSATHwCKw" + + "CAwGT4LCkaA5AXwvXQR/zU6zpmnyXjv7duZLd0XrZja3Yp79mhOQ3IpAF/b9IfYCspdG5QA+0hw2o+jItaxM8xQwDSlQKg4c" + + "cA3TYNWUfukOG4xt8Qq3g1Ura7J2ScAxE2fcw5Ng1crWrF0SsMWEQLzepKxD4jq+gBeG/mnHRh9HS8Do5phGAbs5jUP2jjha" + + "At7pXuJPKbsS7nG0BNzQPcI3fAhWrezE2vM3tycAAAD//+zgow8AAAAGSURBVAMAwIUvO4TGjUoAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAwklEQVQ4T2NkYGA4AMVAimJgzwg0ogGKKTYNaED9qIEUB+No" + "GFIchDROh0ZAB5pAHXkKSF8gw8HwWP4F1KwOxD+ghnAC6StA3EWioWAD9wLxTSDOQtM8E8i/S6KhYANBXjPA4ZIlUAMvEelS" @@ -1613,9 +1625,9 @@ public void arcCircleStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAHVJREFUOE9jZKAyYKSyeQyjBmINUVsG" - + "BgZrqMxJBgaG/fjCnZgwzGVgYJCBGuLKwMDwhIGBIZqBgeEzNoOJMRBdXycDA4MmAwODH7UMBJlzDujCYmzeJ8eFIANBrnzP" - + "wMDQge5Kcg3EGS+jBlJeVIyG4SAMQwCdIwoVbWPYDQAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAgUlEQVR4AeyQsQ2AIBBFib2FvUMYGysLp9IRbKycwQVsHcR1" + + "fCRUcjEHUh75n0su3AN+5QovA/4PVJPhyDVL8ET9lAbYQWiCN+qJayxKA9yZnIN76o0PLEoDfA96eEtT/H4OEJa72AYcKRfo" + + "X7lGNBq5QEZlGVDOJaVrGaakJZ99AAAA///kBf+kAAAABklEQVQDAHKaCSkUoB16AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAa0lEQVQ4T2NkoDJgpLJ5DKMGYg1RWaCoBxCDgucUEF/AF+7E" + "hGEt0ACQof+BmBOIrwBxFy5DiTEQXe9MoMBdXIaSYyDIgiVQAy+h20augbOABp0G4tnUMhBnvJDrwlEDESEwGoaUF7dUD0MA" @@ -1634,10 +1646,10 @@ public void arcAnticlockwiseStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAKBJREFUOE/t1KENAkEQheHvCkDgaQCL" - + "QSOwNEAZCCjhEJRBA1gEGoOlATyCBmCTO8Fl7xIuE9SNncy/772dTCG4imCeAZhNdIF51bni0pV7V4YjHDHBuYIs8cAarxy4" - + "C3jCHdvG4B5TrH4BJpsHzFrs3T4KNzn7bQp3GGfU1fyk8omy+eDfgOGWk5PQT0nA8LWp8w5b7F6HaLg2vWL7GnoDgugeFeNK" - + "vNUAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0klEQVR4AeyQoRECMRREb/AIPA1gMWgElgYoAwElgKAMGsAi" + + "0BgsDeARNMB7M0HchZ/JDDi42b372d3sTdJrvvz8Cz+/0Jo7nPKbdaIzY4xSYZ9tB7iDg0RnNT2kHKXCPfErHMNVorOaHlKO" + + "qNCjDYlbxKcFNT0zLcNFVDjBPMIIemYyPyrMgrVCVHimYAYj6JnJ/KjwRPIGt7ALNT0zXa+JCg0ueI3gBVoindX0kHOUCh/E" + + "53AJ74nOanpIOUqFr7RH27CQzowxagrj3W+cHyx8AgAA//89TZ+gAAAABklEQVQDAF0MHikQ7OLGAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0klEQVQ4T2NkoDJgpLJ5DKMGYg1RI6CoCVTmFJC+gC/cCYVh" + "FVCzOhD/gBrCCaSvAHEXLkPxGQgyTAaIs9A0zwTy7+IyFJeBIG/mA3E8DpcsgRp4CV0el4GpQIWGWFwH0z8LyDgNxLNJMdAU" @@ -1658,9 +1670,10 @@ public void arcCircleAnticlockwiseStroke() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAIZJREFUOE/tlDEOQEAQRd+KhuuotVou" - + "JCIuRKtVuw6NICuREEaxJtHYdjNv/r6ZrEH5GGUeP/C90WeHORE+OTPJ1sqjZaKiopday0AL8+gwBKfihZGZWILKwJKahfQ2" - + "iaGhILu7k4EFwyXdTrApS8KPgepPVh+KFaS6No47/n8OjuIOZeoOVy24KBWsq37aAAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAr0lEQVR4AeyRMQ6CUBBEH8RGr2Nta6sXIoRwIWltrb2ONgZ0" + + "Fip+5odEY8UmC8vMnxeyv+THtQK/X+ifd1ixp+FCzSNaszR8+T9UsOTGwImCbbRmafIM0wM3VAGZBwWXN9enbw/sOU5n0lfG" + + "88AUs0jxwJKrJWQ8D3zRMvBMoNLkJcYoeGDLnZ7D52K6AAtU0IUmb8wnTw/UUQVrzjTsojVLw1ce6HPWWYF2NYuNNwAAAP//" + + "XYrofwAAAAZJREFUAwCFiigpn6iF9wAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAn0lEQVQ4T2NkoDJgpLJ5DKMGUh6i+MOwgUECaMVsILaAWnWc" + "gZUhnaGa4Tkuq3Eb2MogyfCb4RRQowya5idAvj5DA8M7bIbiNrCBYQlQQzQOlywEGphAqoEvgBrEcRj4EmggKDgwAD4XUt1A" @@ -1680,11 +1693,12 @@ public void arcFillPath() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAPRJREFUOE+91DtOw0AQgOHPFlyEAs4A" - + "JQ2cghouES2IO8R1KjpKHgVFCnIAKigizkCFRETAASe2ceKHLLbdmX//nZndSM8r6plnPfDCvk8nOMTO78FTPIiNDEyqZKqB" - + "wRCnNfaJ4Kwc8xcY3OKoYSnuBMf52CKwmVn5rILpCvhTs8eGZsWw2EFW0xWwm10GXlrmgc/Y7WTIi2Avzc0DP7DVETgTbPcF" - + "vOJ7zIJxGdjmyu9IzCQupXnL1bYpr+aGImkT3ja/lE1jE5mYLyCjuhrXDfb1AnTuvg6U7Vc9vRtMxRIDT01B64FtCaX4f/wP" - + "O5r2bvgFsto7Fc6TIKEAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABLElEQVR4AcyQoU4DQRRFDxv+AQ2CoPAgQWywOAzYJSgUrjwI" + + "CoWiaBQO2yAQCPgAVA3hG1AkkLZvdmf7ptt222mapjdz983OvHtmMglz1gKB1+wgNNVt9Z+3mzdxe4zW6Bs6UId3jWTqTfWq" + + "t5tnuD3Xo4vVMQwUWtrkQFpqR0bRS6hBYHFqGjZMmKcUGUoZsHiXaW5WZsuahW9qwA7HZUd0DbIGhL1okAX62RC4YfvRs342" + + "BEZTfOBJ6746HyHwK1+Z7vOrbXf8s4VwpH7DKwS++rW68k2XC21YQzjnhjYVGTDhsbJnvyt86M8JwjpX3Gr9YYwM2MhDD5W+" + + "Z71RyiW7SM2BmAzo1oRTLS31PQnbCId6oxciNAh0QeEA4YwGn8ygYeAMkDCy/MAeAAAA//+6th9mAAAABklEQVQDAAx2OinL" + + "04YhAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABPElEQVQ4T83UzyuEQRzH8feiuHJyUy4S5e6u3PwBDpy4iBM5" + "iKndC1qJ1hEnB3EnRykXKfIjtVt7cuWg/OYz5Wlnxz7MPm3y1Pcw02deM8/MNClq/KVq7BEPZmjjlUFN2K/qUtnsqeqEBnLM" @@ -1709,10 +1723,11 @@ public void arcFillPathAngle() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAALhJREFUOE/Fk7ENAjEMRd/NQsEOLMAC" - + "tFQ3AQwCE1DRsgALsMMV7AKW7lAUYn8XEaSKlO/n7+RnoPMaOvP4CfAKPJPOV2/tvtTWDnfAGbgkgSNwAG6LvjXyAziVIgdu" - + "zY/AJnJoZ01hA9ps7D2Kcuk29YDKpdswio1XFDaLgF5heB0q2HWxugr5U2qAeiwJtLQsENt/5a6Okxq5zKXtZeAzQANNs5O1" - + "+pJZ4HYG3XsBFedznnX4P+ALwKAjFWklBKcAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA5UlEQVR4AdSQyxHCMBBDPbRAQxRBHRyogApogisN0Acd0Ah6" + + "wyjYjj97yCWZVbKz0spyDmnjZ5+GD/2FWxBoJf1XfeWzqJMQLbTsLPra8CnmI7yFWUo0aNmR/Fe1IdO7XldhVmjQFrqWoU8s" + + "rlJspWTO2oVuGUJyMgnoW4BDs+J6hj7ZSfJFz6zJudQzREQCktDnYAaXz5Z+ZOgETsSSe3PMCowMEZKERPSAnhl9EzNDJyEZ" + + "wMQz+hVmhiyQiGSAnlkXEUMSHeUA6NX2K2LI9kUvoM+4ooYv2QB9xhU1HLtk7OaGXwAAAP//3VWVfAAAAAZJREFUAwBZ+yYp" + + "OJqsPwAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAApElEQVQ4T+WT0Q2AIAxEwYncQDcxTmLcRCfRCVxJ2w8Iadoe" + "JsQfSfrV412BI4bGKzbmhU+Ay8up11IvJxyouVNtldCJdDPVmfTakQ9qsmsWGXA2Z93oTcg9VahAVWPrUdCUpqkFRFOahl5s" @@ -1734,8 +1749,8 @@ public void closePath() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAChJREFUOE9jZKAyYKSyeQyjBlIeoqNh" - + "OBqGZITAaLIhI9DQtIzAMAQASMYAFTvklLAAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALklEQVR4AezSIRIAAAgCQcf/P9pOPIlnM0DYYad8Fv5BNdQQ" + + "CDgbgBYRDQMEvAcAAP//GaAxmgAAAAZJREFUAwCLOAAp5PB2EAAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAKElEQVQ4T2NkoDJgpLJ5DKMGUh6io2E4GoZkhMBosiEj0NC0" + "jMAwBABIxgAVO+SUsAAAAABJRU5ErkJggg==", @@ -1752,8 +1767,8 @@ public void closePathNoSubpath() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAChJREFUOE9jZKAyYKSyeQyjBlIeoqNh" - + "OBqGZITAaLIhI9DQtIzAMAQASMYAFTvklLAAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALklEQVR4AezSIRIAAAgCQcf/P9pOPIlnM0DYYad8Fv5BNdQQ" + + "CDgbgBYRDQMEvAcAAP//GaAxmgAAAAZJREFUAwCLOAAp5PB2EAAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAKElEQVQ4T2NkoDJgpLJ5DKMGUh6io2E4GoZkhMBosiEj0NC0" + "jMAwBABIxgAVO+SUsAAAAABJRU5ErkJggg==", @@ -1770,8 +1785,8 @@ public void closePathPointOnly() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAChJREFUOE9jZKAyYKSyeQyjBlIeoqNh" - + "OBqGZITAaLIhI9DQtIzAMAQASMYAFTvklLAAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALklEQVR4AezSIRIAAAgCQcf/P9pOPIlnM0DYYad8Fv5BNdQQ" + + "CDgbgBYRDQMEvAcAAP//GaAxmgAAAAZJREFUAwCLOAAp5PB2EAAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAKElEQVQ4T2NkoDJgpLJ5DKMGUh6io2E4GoZkhMBosiEj0NC0" + "jMAwBABIxgAVO+SUsAAAAABJRU5ErkJggg==", @@ -1788,10 +1803,10 @@ public void closePathTwice() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAK9JREFUOE/tk7ERgkAQRR+1ENiDDdgA" - + "qREVYCFSgZGpDdiAPRDYCy5z66zLyeGsIRcx/89/t3yWij+fyvAOwN3xrXYFns6vX9rRagpsgBOwd4EHcE5aD1yc3wIdcFPd" - + "TqhhNf0lJX9iWuCvAH/BDCiCfcVSBTn/Y0IB6pTyLN29u0kdlfwZUHJDCu++bNSibzvUvKyKHL9Cq/wcMLTqGzBUX3axw8Tt" - + "o4QrzP7LIeoI3pwhFeJpA+wAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA0UlEQVR4AeyQ0Q3CQAxDK1ZgIf5YgDn4YAGYgCX4ZQH2YAMW" + + "we9OVtMole6jn63inmNHvlMO08ZfDDwX2VF7yX8koEmay4EXSXchFxoeOGVTPRqeaC8Hvns7RdMcD/w08xX8SjganuReDqR7" + + "6ncTXHA093A093A09+2Mgb6JlwEGrEWOB6IGb4iBCNzIzQCOFoGGB+DRazwH8qKjHAAXXRQaHoAvTJociHbVD+goCw+UZhX4" + + "0STQURYeKM0qsBwcFffA0U2tz+07XN/NqLP5Dv8AAAD//6/XRzQAAAAGSURBVAMAxh0iKRS6NNsAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAiklEQVQ4T2NkoDJgJMG8ehxqG5HFYQbaAwVBEg5omvZDxf8D" + "6YVAvABNPh7ITwTiAzBxZBfCNMMk0S0hJA82E9lAUg1AtwDDQJAAshcJBQE2eRQXggyEuRIUZiAN8LCBhhEheQwDQfrOATET" @@ -1812,9 +1827,9 @@ public void closePathClosesOnlyLastSubpath() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAGZJREFUOE9jZNjH/J8BGTj9ZUThE+Kg" - + "6WekuoH7GFBd6MRAmgvR9TNS3UB4EFEallCDEBFAbQMp9TrMp3AXUt1AQsmNWHnSEjERpo4aSEQgEVAyEsIQozykNNiobSBG" - + "eUixA9EKaAA0fyYV+TYpjQAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAdklEQVR4AexU0QrAIAi8tT/rw/2zsWXgcMIIUWEPCw4tvLwO" + + "soH28wE4l+E3J31Z3qgDGkuGKdBczvMVdhzbBAF94PbTKHnbTq7cMWK+QunM79eQc2+sU2i98CqT+jqF0iEaf4VRB4EPelg+" + + "D6Ou6f/PebqHFwAAAP//nUdSmAAAAAZJREFUAwCqLTcpdpR/5AAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAZklEQVQ4T2Nk2Mf8nwEZOP1lROET4qDpZ6S6gfsYUF3oxECa" + "C9H1M1LdQHgQURqWUIMQEUBtAyn1OsyncBdS3UBCyY1YedISMRGmjhpIRCARUDISwhCjPKQ02KhtIEZ5SLED0QpoADR/JhX5" @@ -1846,9 +1861,9 @@ public void putImageDataInside() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAGtJREFUOE9jZNjH/J+BgYFhnxOIRAAn" - + "hr+MqCLE8RipbuA+BogLyXURursZqW4g3AZoWML5TuSGIcwEahsI8zrMfHLDFJ40qG4gcamMsCqyEi8+Y0cNJBzohFSMhiGh" - + "ECIsT70whBYuVDcQAEALHZVK+V18AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAaklEQVR4AeyUQQoAIQhF/9TNOrg3GxqE+WALidJ2BR8hEx9v" + + "UYHUrhHUboPNUzbn3LEiDdA0vI+NOzFp5BOSSj0OmZB47XxCblKPNrxfrecI6ZJ1lYzvzxFyQ7RewqhB4DoMOPx//nSHHwAA" + + "AP//+UMdZQAAAAZJREFUAwDnWCep6qrEzgAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAaUlEQVQ4T2Nk2Mf8nwEI9jmBSARwYvjLiCpCHI+R6gbuY4C4" + "kFwXobubkeoGwm2AhiWc70RuGMJMoLaBMK/DzCc3TOFJg+oGEpfKCKsiK/HiM3bUQMKBTkjFaBgSCiHC8tQLQ2jhQnUDAUAL" @@ -1880,9 +1895,9 @@ public void putImageDataOutside() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAF1JREFUOE/tkskJACAMBBPszMLTmSjR" - + "jxBhPfap38AwDqtCfkrlWaodaJJqlvIMd84zZP4hHehwquES6Np+uG0aDOnAMCMbxpL3VoAb0oGHy8eGH4gK/IaoEL7TGzaf" - + "lBRV53guuAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAd0lEQVR4AeySUQoAIQhE3e1mHdybLW3jRwRSSsxnwUTo9JDB" + + "V8iHC9TSDKhSGmNQrSIGrPI9DCAYBsSDIQxGBWIoB0SeEJoncsATyPzHAZEDNEx9FQQahf3DAff2uBsDa18pKGaZIwaaLX9d" + + "YD6rlfNmuEomX/8BAAD//wdK4uwAAAAGSURBVAMAVhUTKWG0g3UAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAXklEQVQ4T+2SQQoAIAgEjX7Ww/tZVHoKCrZyj3pUGNZhk5An" + "UXk1dwNWyb1Ic8OV44asH9KBCqcmPAI1th5+nW4J6cCtRrMKtit3LcAO6cDH5uOEAUQGwiEyhO90hwOflBRVULNh6QAAAABJ" @@ -1914,13 +1929,13 @@ public void putImageDataDirty() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAYxJREFUOE+t1L9LV2EUx/HXl2gI+gPS" - + "piBqMsFRoiGiEIKWIFAicNEahMIpUKPNxcYMoogIGhwFrSkQFUchiqBJlPYSDYf0OXCvPN2uelOf7d7nPO/z63NOyzGfVsa7" - + "gQ8Vfvw7iemmfkvgbTxCd+XhV5xFF743geYRLmACU+jEIG4ioOcQTpcPgubAePAUq+jACXzCF/ShHfN4hpm9wDnwCR7jOeZq" - + "ShD/VnAVLxIw7P85JTAurxew+4VVmX756DwW8QAPU70/1kED2INXuIBf+FYQLtYEEDV9jWuYTRH3V9MPYHh6g3cFIKQSpyqh" - + "kj+MW5jEvSKzXd8B/JFq0pZFs31QJ7P7jUJqu90P4FvcPSRwE0N4Wb4PYDQk79j/RBi279F7XMDfGM8DOmrKawXsr5SP0pR1" - + "XM5Hsk42TWu4lTS8hCu5KuqE3RQYQ3CnTtjhoBy9EPXPBjoMWCyJsaptdTkMpAk4sw/wD0J7ARvZbzmUdzHXo7iUNk/U6FT6" - + "DkhEdDrtxM9FNnuurx0UblcV1Fz/YwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABnElEQVR4AayUyyttYRiH1zmjMzinMzh/wmFGRkaMJFJmLhMj" + + "DGRAkanIRCKXEpmYuIwMlUvGKCIZKDEzIqWEGOB52Ovb9rbI3tn9nvVevu/9tS7t72f0zb+3htUJ3vZqE/oftmLDenb0QbbG" + + "aSxCAXxJseFSarfGpiVcpuE3bMMK2CN8rtjQXaNcBmAdVqEOtmATlNG1GouPeGtYxCYf7YjYASfQCP1QCHtwAbNgj/BesaEb" + + "qlhuhVLoBu+YENRM5p7OVHSGNFMa+ghttP2ic8R/KeL3Svki71jTKap2cMZZ0rQ07KLsgWtQ3oGYZ7NMYwgmwRlnSdPSsJhy" + + "AWL5QeSJRhLD9MthHsog4+truEEzX/1g0HdOeJWGp69pXtdfTFVAkIahyCO5Z+YYgjT8H6rck0tGziBIw8pQ5Z78ZWQHgjQ8" + + "pGqCXPXAwD4cQJCGY1Qj8Adyke9vMHtAQ0+SGRbW4Kum/gm8EWcZS0tDK/+XniQZX8yFLB6pb2ACks7PKDZkPdK0JYoiz79b" + + "4hX4WHfEc7C3S2yAXkjUMwAAAP//vvA2KgAAAAZJREFUAwBGz0v7qwwAqAAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABgUlEQVQ4T62UuS9FQRSH3/MfWEIs0SoUtkhEQ6NBgiglKqIQ" + "nUQiYkskiKVQo6MRa9Q0hALR6RSWWGLXUOD7vcxNzrt5uO/lnuTLZOae+e6ZO3cmGgk5oiH7Ip6wBvEI1PpesEe/CLKCvthW" @@ -1950,10 +1965,10 @@ public void clip() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAKZJREFUOE9jZKAyYKSyeQw4DfwvNMWS" - + "gel/HOOb3ExSLMVtoMjk/yCDGN/kkuSLUQMRwf9/+Ifhf5HJvxkYGFhgnoYlF5jXCaTFP4xvclnByQym8L/I5JsMDAxqZBp4" - + "i/FNrjq6gdMZGBgyyDRwBixHIVwIyWrHyDLwH6MV47uc4yguBHH+i0yGu5KEMIS7DsNA5IAfAumQ2sUXKWUgslqSyjpiLAEA" - + "O2tdFYccvt8AAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAuElEQVR4AeySzQ3CMAyFcUdALAMTUQmmAYmeGYQjbMEEiAUq" + + "NbwgXn4OJnKgPbXKk+s072vspFn8+ZkO6JbHtVsdTtYC9B027grYFjINHWjCxMUzMPai9m28HuLO9ZCj5LEXL+aF2LOidId3" + + "TlbE4E2BlwoQLcEbgYOc+dUcE28AynN3A6iDrKP7eN++APQZDqGFssNg/iW23ktlQE7+EnXgIBuAzS1Qgb4vKDMrBz8oDhVY" + + "dCoLXgAAAP//d8fzjgAAAAZJREFUAwAZhFYp0xyimQAAAABJRU5ErkJggg==", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAyUlEQVQ4T2NkoDJgpLJ5DDgN/C84UY6BiTGS8W1eJymW4jZQ" + "ZPJ/kEGMb3JJ8sWogYjg/z/8w/C/8OQPwFTJD/M0LLnAvI43Lf5n+Mj4NlcAnMxgCoEaLwDZ+mQZyPD/LOObPBNUA4UndTAw" @@ -1977,11 +1992,12 @@ public void clipWindingEvenOdd() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOpJREFUOE/t1KFOA0EQxvHfiiIIqAYB" - + "ElECJAheAEMdBIFCUF4A0YSkbYLBkdaSoHF9AzyiEoHlBUg9CnP0kr2wOZJyuSBvzJfszvwz++3sBtzhaKF5vEStLSFW5tA8" - + "Cm2A1R1IPBx0GK+ii1xHhHGKyjiNPh/G9WFgkuaUgVs4wTqmuCB8FAUR2MfZYn8Ht+gFPoucMvDtp6vsAU+E1xJwN+8qYxP3" - + "uF4GrNLhn8A42JdtblbY26bVYjhl8p76M6Czz8YVswPWHjk+53nOV3rkBNid05tVv9PfmUs8rIdtnl7z29SYnH8fm2/FgECV" - + "q9xRJAAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABIklEQVR4AeyTMUoDQRRA31pYKdiZeAArRQsLC8HKwsIDWIil" + + "BxASsIqNYI7hCdKJIIiFpYXRKq1gsBGR2Gixvi9Zk0wlWQsFl//4f2f/vJkddieABnDRJ+pSFMJLhUEpmY5GCM0/F39KWJuH" + + "vCWvkks9PQgHt+Ra8j61tCd95RkbZmVONpVWzWk8OzAtK7KqeMr8FanwFLKedIFbCbFpJM4ysIcHR19kJFJh7MoV89jZop0x" + + "yfT9CGF8e+vQXYCbCrw/OV1RXbI963j+iYe6fQIbMbYE+1ewXIGDuC8IoXUR7XuYPILsEJodkqsJnV3QA23orUHrEd6G20IY" + + "q/uXVO9g59yHcT82IdQRETvKjqMqw5CwjGYw9184OItxq99/hh8AAAD//6px7r0AAAAGSURBVAMAZkBbKcNIUoIAAAAASUVO" + + "RK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA40lEQVQ4T2NkYGBoAGJ7IGYE4gNATBEAGQIC9VADQYZTBEa2" + "gZNNGRhyvgIDMAwaiJnAeJqBHKD/GRiygPwEIAaqBYMeYJiVIqtBCkOwgUZAQ6QgCv4D9TPC5CEiUAOBgmZAtgpQ6DCQLYnP" @@ -2025,9 +2041,10 @@ public void fillTextAndTransform() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAJBJREFUOE+t1FsOgCAMRNFhc7pmXZ0p" - + "CQSkj6GhP4YQL+erBYenHO5hDD4AruQDL4Bb/h2DEpNoZiQm0Sko54yy67RgRtl1WnBXOems4I5y0llBVrnovCCjXHReMFKq" - + "uijoKVVdFLSUpo4JakpTxwT/SlfHBkelq2ODTSnfulG8YfdhW2t1o5wIRp1+zwrp4Ac9kx4V/3bxXQAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAxUlEQVR4AbSOCw7DIAhAze6/A22X23gkElSktGmXPqd8Hrza" + + "zb9HhR9Z9ncReqW1Nb/hWyPXDuv1wq+4QP5OffSANnkhAZvEo8jQMwuZBEVXoxasfhaSGCYSSFhqIyETIfFoihrQRz8iIbll" + + "MsGJsGYnZDJMDnuSAwv0y05IPtyAhLDNZUI2AOkfPmIwBPsjE1ITbRLFqFWOhGwCWiwHd5Br/B0J6fIb+Tu5hYqQjTyLxAcq" + + "QurZDLinVIV9w1RGsiqktsQfAAD///+F28sAAAAGSURBVAMA3NsuKRKJJt4AAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAj0lEQVQ4T63USw6AIAxFUViZunJxZ7YDCJ9+Hg2dGDG9nJE5" + "HZ58uJf6YKH4Fbzgo72bd/sgH7zB4EN7DBqC/B5RNp0UjCibTgruKgedFtxRDjotiCoXnRVElIvOCnpKUecFLaWo84KaUtUh" @@ -2050,11 +2067,11 @@ public void pathFill() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAQxJREFUOE+11M8qRVEUx/HPfRMTychE" - + "KEJKGchUUqKYmLolioFS8gIGDIgkMwNlYsRAeQhFEV6CXffUdjp/9qlrT3at9eu79vq3W7p8Wl3miYFPGE4McI6lIm0M3MFe" - + "AvATQ3itAw7iOQG4jqMyXb6GDxirgN5itipoHriJg4RX5iVnWA7GPDA0JTSnyQm1nMRLETDY7jHVgLiGk0xfNIfb2E8EXmIx" - + "1hYBR/GYAHzHCN7qgHHad781nSmB/0m1KuXg28UGJnCI6Rz0GvN1gx37x9GHY6x27sz/jQF8NAHG2p5sJDrGFZymbkqZ7gZz" - + "uMJCk00p07axhX58dQMYNqgXF3Xj9K8fbF3wJP8PpH0mFcFq5PIAAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABGklEQVR4AbST3UoCURSFo9frYeoioiCI6CG6qIuIiOgyioJU" + + "/AUFL3wDRUFRwQtfQL91wOHMzJ7jGVBZ33bPPmsW54zO6cmBP0cN7LLZTSSv+Ez5O/wxHfnhnNEtmPIDf01HfnjPaAym/MA+" + + "jjaEpFM8hgx+oHzfKgHOWLOe8wtzp2xg3U3LFR1fj8HdlQ3sMa1BGT1gHoJTNlDDqkok7/ieIZEV2EhWw82U5WtIyQrs4Ngd" + + "+4++SHcsTCAlK1AG7XJNcwP/kNUng9RRuXYqCtSvfYljALqZr0RLugswVRTYxP0EUkXF44p+BqaKAn3ziIsvkD4oyZ+YPqeY" + + "QN3UoqzgHIIqE6iwRTCNxdhAvUFv+PcqNnBv0M6wBQAA//+T4a7rAAAABklEQVQDAL2YOinNYVJ0AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA3ElEQVQ4T62UYQrCMAyFu8MIQ397Epm30CvofRyeQ/C3CB7C" + "M/gCnaRZ0r3CAmWwZl+Tt5d2aeXoVuYlDXwBviUPuCHv6OVq4BUJFwL4Rc4GS56z0ECpTqpcCqlMKnTDavjJp0f5d2wcaida" @@ -2086,11 +2103,11 @@ public void pathFillTransform() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOZJREFUOE+tlNENwjAMRC/zVBVD8MkM" - + "LMASMExX4AuGYA+GCLrIjYzrYlc0P0hteL13cVuw8yo786CBLwCH5AMmAGdvrwbeAFwTwDeAAQB/F0sDmY4po8VkTOgu22Gk" - + "vao60y2wa0dkE28q0qkFdu1sodLlUKRTb2xauGyhPO2iOvWAW7S76lqHvJ7VbuMzq/4C8l7TPgL3J3BamZAv1QhI7QsTVODh" - + "vEEL1QhI7ZEDXAF74K5qBOyWVXUqF13VNJAbq3TKxPMAZ189d59ot07tqdo/pL6Hoj3qAf4rYfT50fdTCbcAP2uOMhXdBSkP" - + "AAAAAElFTkSuQmCC", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABBElEQVR4AbSRsRHCMAxFBXPSsAIrQQ8NJRULwBwZIvznO/mc" + + "WDIpgNOPiSQ/9MXefvz5K/ClYeeNOqsvjHbCW9jRJyelTlIYLfAadvRJYED7ijIt8K13pCONiypIRxwtkI5qO1noQUueA9Wd" + + "roHVdiXzM2NhnzWUrjUQy8gqubQNH6edGdDStAaSLMNBRSQGugi22GkErMMVck5jqmrV2yIggyF7mt29MTgXVr0eAakx3PQw" + + "O+qlwHW20Vn1YgbENnawBdz7OclR43unDMhUvmzg7cXQqjdkQK+b/kXgiFxqlSL6CqRJwvbQqnpKbAVie2i10PTYBMS25DvV" + + "tTw2AfPrfeUDAAD//0zqw3cAAAAGSURBVAMAkVVLKYjWD1YAAAAASUVORK5CYII=", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA7UlEQVQ4T62U0Q3CMAxE3WEq+OSTGZiADsEMMA5doCPACDAF" + "K8DZaqLUtYlBqVRVSk7PubPTjho/XWMelcAn4JtggRG6o6UtgRcIzgHgC5oeL39XTwncYvcRAA7QXD2dzrBm27WaCmhgtl0j" @@ -2127,9 +2144,9 @@ public void pathFillTransform2() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAHVJREFUOE/Vk8EOwFAEBNef+3M9lDY0" - + "mhIOfccnmYwFYfjRMA9/BDLExcC1Lp4tbwGF/bgI30xTwzmgignOLClECtDrZqTFceCdoPipdw0XgX7aFoX9xumXT28NSGFP" - + "oRfVNhwDXonGE9VC2XAPaORg2jdMgAdeyiQRQvsTZgAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAe0lEQVR4AeyTWwrAIAwEJz15bm43pqUPECqI/nRhVER0iLox" + + "OP+GKqhTuENf5tWwOFTUFfHVc4KhYwRkTCUNJBmiIudb7QTD42gDC+jMPMNLrIqGbEVFLHeudTlaYZgnv1tzCHA9g4DMekOj" + + "cfthKdYbcsZ5/KhzerjhDgAA//9EkkqJAAAABklEQVQDACUWJCWDyd5BAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAeklEQVQ4T9WTUQ7AQAREubmbqzS0pdHsCh/dT5K3YwaE5ofN" + "PPgjkICdDbQ3xXvkKSCTj0t+XvI7VdgHVGFi5OklBkul8qk0bbYDbwfZp15VOAj0aZsVVo3pL63CEzkGxLCnoBdVVtgGvMaP" @@ -2166,10 +2183,11 @@ public void saveRestore() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAL1JREFUOE9jZEAFjgwMDOZQoZMMDAz7" - + "0eQJchmhKnhFGBi2CDAw6AcwMHCDxDYwMHz9wMBw8Q0Dgw8DA8NngiZBFYANFGFgOJjAwGDVzcDAgqyxlIHhzwIGhmNvGBjs" - + "STHQUYWBYf1tBgZ+bJpUGRg+3mFgCCTW+yAXVpQwMDSjuw5mOMiVPQwMtQwMDB3EuJImBlLdy1SPFFDQUDfZIAU21RI2MRFI" - + "lBpYTiFKMTGKRg0kJpTwqxkNQ8rDEABatjIVyjXhJwAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA8ElEQVR4AeyQMYoCQRREH7LZIrvBHmE33lDYZJncQG/gIRRM" + + "jEwEPYQ30MBcTARDYz2CgSJmBlbJTGAzA92YOvyC6qrfD6ZrPH6Zjv1c9rJpUwDrX7D6hlkXhpa9M+HqUvTcgbq46MDfDj7G" + + "8GbZO3MXTdNiTco+4dcQ+Ydx5k5hJkWNgY0WvFdt512jqg9zA8PsqbOBmzlcqih5t6nqw9zA5RG2PbiGpTN3ypdS1BjIAZpT" + + "WP/AyRDL3pm7KFK+dAfKn3Xxfw/tCQwse2fupOgpgMUF/9pIB8teNm1CYNrtku0XsORREqPXGyY+WMn6DQAA//9HegNzAAAA" + + "BklEQVQDALe2MilY1lPyAAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABF0lEQVQ4T+2SvUoDQRSFv5SC5UIUK30ACUFIbyws4wMsBkO6" + "RJ9AiBhUsEqvstoKVgELwdRa5cc6pTbGLqTUM+saNsvGHUljkYFlmDn3fnvPvZNicmV13AiunrW3I3riMfUTkYYT0dwlcMzd" From 92f215385522ba647af493082b908df415d69e24 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:53:14 +0200 Subject: [PATCH 13/39] Chrome/Edge 139, Firefox 141 --- ...StyleDeclaration2Test.properties.Chrome.txt | 18 ++++++++++++++++++ ...SSStyleDeclaration2Test.properties.Edge.txt | 18 ++++++++++++++++++ .../CSSStyleDeclaration2Test.properties.FF.txt | 1 + ...tyleDeclaration2Test.properties2.Chrome.txt | 18 ++++++++++++++++++ ...SStyleDeclaration2Test.properties2.Edge.txt | 18 ++++++++++++++++++ ...CSSStyleDeclaration2Test.properties2.FF.txt | 1 + ...SStyleDeclarationTest.properties.Chrome.txt | 18 ++++++++++++++++++ ...leDeclarationTest.properties.Chrome_NYI.txt | 18 ++++++++++++++++++ ...CSSStyleDeclarationTest.properties.Edge.txt | 18 ++++++++++++++++++ ...tyleDeclarationTest.properties.Edge_NYI.txt | 18 ++++++++++++++++++ ...edCSSStyleDeclarationTest.properties.FF.txt | 2 ++ ...SStyleDeclarationTest.properties.FF_NYI.txt | 2 ++ ...ationTest.properties.displayNone.Chrome.txt | 18 ++++++++++++++++++ ...nTest.properties.displayNone.Chrome_NYI.txt | 18 ++++++++++++++++++ ...arationTest.properties.displayNone.Edge.txt | 18 ++++++++++++++++++ ...ionTest.properties.displayNone.Edge_NYI.txt | 18 ++++++++++++++++++ ...clarationTest.properties.displayNone.FF.txt | 2 ++ ...ationTest.properties.displayNone.FF_NYI.txt | 2 ++ ...ationTest.properties.notAttached.Chrome.txt | 18 ++++++++++++++++++ ...arationTest.properties.notAttached.Edge.txt | 18 ++++++++++++++++++ ...clarationTest.properties.notAttached.FF.txt | 2 ++ 21 files changed, 264 insertions(+) diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Chrome.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Chrome.txt index 825920f70d..6dd289548a 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Chrome.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Chrome.txt @@ -144,6 +144,23 @@ containerName containerType content contentVisibility +cornerBlockEndShape +cornerBlockStartShape +cornerBottomLeftShape +cornerBottomRightShape +cornerBottomShape +cornerEndEndShape +cornerEndStartShape +cornerInlineEndShape +cornerInlineStartShape +cornerLeftShape +cornerRightShape +cornerShape +cornerStartEndShape +cornerStartStartShape +cornerTopLeftShape +cornerTopRightShape +cornerTopShape counterIncrement counterReset counterSet @@ -364,6 +381,7 @@ range readingFlow readingOrder resize +result right rotate rowGap diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Edge.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Edge.txt index 825920f70d..6dd289548a 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Edge.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.Edge.txt @@ -144,6 +144,23 @@ containerName containerType content contentVisibility +cornerBlockEndShape +cornerBlockStartShape +cornerBottomLeftShape +cornerBottomRightShape +cornerBottomShape +cornerEndEndShape +cornerEndStartShape +cornerInlineEndShape +cornerInlineStartShape +cornerLeftShape +cornerRightShape +cornerShape +cornerStartEndShape +cornerStartStartShape +cornerTopLeftShape +cornerTopRightShape +cornerTopShape counterIncrement counterReset counterSet @@ -364,6 +381,7 @@ range readingFlow readingOrder resize +result right rotate rowGap diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.FF.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.FF.txt index 1460db57c8..009e0992b8 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.FF.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties.FF.txt @@ -302,6 +302,7 @@ fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian +fontVariantEmoji fontVariantLigatures fontVariantNumeric fontVariantPosition diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Chrome.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Chrome.txt index 9b5e63c19c..5c60ea702d 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Chrome.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Chrome.txt @@ -144,6 +144,23 @@ containerName containerType content contentVisibility +cornerBlockEndShape +cornerBlockStartShape +cornerBottomLeftShape +cornerBottomRightShape +cornerBottomShape +cornerEndEndShape +cornerEndStartShape +cornerInlineEndShape +cornerInlineStartShape +cornerLeftShape +cornerRightShape +cornerShape +cornerStartEndShape +cornerStartStartShape +cornerTopLeftShape +cornerTopRightShape +cornerTopShape counterIncrement counterReset counterSet @@ -363,6 +380,7 @@ range readingFlow readingOrder resize +result right rotate rowGap diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Edge.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Edge.txt index 9b5e63c19c..5c60ea702d 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Edge.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.Edge.txt @@ -144,6 +144,23 @@ containerName containerType content contentVisibility +cornerBlockEndShape +cornerBlockStartShape +cornerBottomLeftShape +cornerBottomRightShape +cornerBottomShape +cornerEndEndShape +cornerEndStartShape +cornerInlineEndShape +cornerInlineStartShape +cornerLeftShape +cornerRightShape +cornerShape +cornerStartEndShape +cornerStartStartShape +cornerTopLeftShape +cornerTopRightShape +cornerTopShape counterIncrement counterReset counterSet @@ -363,6 +380,7 @@ range readingFlow readingOrder resize +result right rotate rowGap diff --git a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.FF.txt b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.FF.txt index 7f5512a0fe..c2b4d70db7 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.FF.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/CSSStyleDeclaration2Test.properties2.FF.txt @@ -300,6 +300,7 @@ fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian +fontVariantEmoji fontVariantLigatures fontVariantNumeric fontVariantPosition diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome.txt index 633b755b82..618dfc8c0e 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome_NYI.txt index 576a33cc64..eac1e93ea9 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Chrome_NYI.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge.txt index b0b2b5d521..23281feea0 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge_NYI.txt index fc604ffab7..b97f67f6c2 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.Edge_NYI.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF.txt index 2a78f4bcad..c4a2cc5c41 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF.txt @@ -555,6 +555,7 @@ font-synthesis=:weight style small-caps position font-variant-alternates=:normal font-variant-caps=:normal font-variant-east-asian=:normal +font-variant-emoji=:normal font-variant-ligatures=:normal font-variant-numeric=:normal font-variant-position=:normal @@ -581,6 +582,7 @@ fontVariant=:normal fontVariantAlternates=:normal fontVariantCaps=:normal fontVariantEastAsian=:normal +fontVariantEmoji=:normal fontVariantLigatures=:normal fontVariantNumeric=:normal fontVariantPosition=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF_NYI.txt index a57dab487c..8542a0ee3c 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF_NYI.txt @@ -555,6 +555,7 @@ font-synthesis=:weight style small-caps position font-variant-alternates=:normal font-variant-caps=:normal font-variant-east-asian=:normal +font-variant-emoji=:normal font-variant-ligatures=:normal font-variant-numeric=:normal font-variant-position=:normal @@ -581,6 +582,7 @@ fontVariant=:normal fontVariantAlternates=:normal fontVariantCaps=:normal fontVariantEastAsian=:normal +fontVariantEmoji=:normal fontVariantLigatures=:normal fontVariantNumeric=:normal fontVariantPosition=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome.txt index bfb74877d2..145bb24416 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome.txt @@ -145,6 +145,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -364,6 +381,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome_NYI.txt index 591ab1a4b2..a063337afe 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Chrome_NYI.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge.txt index bfb74877d2..145bb24416 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge.txt @@ -145,6 +145,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -364,6 +381,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge_NYI.txt index 3a96453fa0..e6819d4f36 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.Edge_NYI.txt @@ -144,6 +144,23 @@ containerName=:none containerType=:normal content=:normal contentVisibility=:visible +cornerBlockEndShape=:round +cornerBlockStartShape=:round +cornerBottomLeftShape=:round +cornerBottomRightShape=:round +cornerBottomShape=:round +cornerEndEndShape=:round +cornerEndStartShape=:round +cornerInlineEndShape=:round +cornerInlineStartShape=:round +cornerLeftShape=:round +cornerRightShape=:round +cornerShape=:round +cornerStartEndShape=:round +cornerStartStartShape=:round +cornerTopLeftShape=:round +cornerTopRightShape=:round +cornerTopShape=:round counterIncrement=:none counterReset=:none counterSet=:none @@ -363,6 +380,7 @@ range=: readingFlow=:normal readingOrder=:0 resize=:none +result=: right=:auto rotate=:none rowGap=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF.txt index aca6295a94..4cfa83d773 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF.txt @@ -556,6 +556,7 @@ font-synthesis=:weight style small-caps position font-variant-alternates=:normal font-variant-caps=:normal font-variant-east-asian=:normal +font-variant-emoji=:normal font-variant-ligatures=:normal font-variant-numeric=:normal font-variant-position=:normal @@ -582,6 +583,7 @@ fontVariant=:normal fontVariantAlternates=:normal fontVariantCaps=:normal fontVariantEastAsian=:normal +fontVariantEmoji=:normal fontVariantLigatures=:normal fontVariantNumeric=:normal fontVariantPosition=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF_NYI.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF_NYI.txt index 9fa1ecfe1b..22d8c841a0 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF_NYI.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.displayNone.FF_NYI.txt @@ -555,6 +555,7 @@ font-synthesis=:weight style small-caps position font-variant-alternates=:normal font-variant-caps=:normal font-variant-east-asian=:normal +font-variant-emoji=:normal font-variant-ligatures=:normal font-variant-numeric=:normal font-variant-position=:normal @@ -581,6 +582,7 @@ fontVariant=:normal fontVariantAlternates=:normal fontVariantCaps=:normal fontVariantEastAsian=:normal +fontVariantEmoji=:normal fontVariantLigatures=:normal fontVariantNumeric=:normal fontVariantPosition=:normal diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Chrome.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Chrome.txt index dada1bfe22..e40e8edeef 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Chrome.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Chrome.txt @@ -144,6 +144,23 @@ containerName=: containerType=: content=: contentVisibility=: +cornerBlockEndShape=: +cornerBlockStartShape=: +cornerBottomLeftShape=: +cornerBottomRightShape=: +cornerBottomShape=: +cornerEndEndShape=: +cornerEndStartShape=: +cornerInlineEndShape=: +cornerInlineStartShape=: +cornerLeftShape=: +cornerRightShape=: +cornerShape=: +cornerStartEndShape=: +cornerStartStartShape=: +cornerTopLeftShape=: +cornerTopRightShape=: +cornerTopShape=: counterIncrement=: counterReset=: counterSet=: @@ -363,6 +380,7 @@ range=: readingFlow=: readingOrder=: resize=: +result=: right=: rotate=: rowGap=: diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Edge.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Edge.txt index dada1bfe22..e40e8edeef 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Edge.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.Edge.txt @@ -144,6 +144,23 @@ containerName=: containerType=: content=: contentVisibility=: +cornerBlockEndShape=: +cornerBlockStartShape=: +cornerBottomLeftShape=: +cornerBottomRightShape=: +cornerBottomShape=: +cornerEndEndShape=: +cornerEndStartShape=: +cornerInlineEndShape=: +cornerInlineStartShape=: +cornerLeftShape=: +cornerRightShape=: +cornerShape=: +cornerStartEndShape=: +cornerStartStartShape=: +cornerTopLeftShape=: +cornerTopRightShape=: +cornerTopShape=: counterIncrement=: counterReset=: counterSet=: @@ -363,6 +380,7 @@ range=: readingFlow=: readingOrder=: resize=: +result=: right=: rotate=: rowGap=: diff --git a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.FF.txt b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.FF.txt index 9617c5897b..06b130024a 100644 --- a/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.FF.txt +++ b/src/test/resources/org/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.notAttached.FF.txt @@ -555,6 +555,7 @@ font-synthesis=: font-variant-alternates=: font-variant-caps=: font-variant-east-asian=: +font-variant-emoji=: font-variant-ligatures=: font-variant-numeric=: font-variant-position=: @@ -581,6 +582,7 @@ fontVariant=: fontVariantAlternates=: fontVariantCaps=: fontVariantEastAsian=: +fontVariantEmoji=: fontVariantLigatures=: fontVariantNumeric=: fontVariantPosition=: From 72e01de28a36b1df78c26db675e7b56197f61d62 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:54:31 +0200 Subject: [PATCH 14/39] Chrome/Edge 139 --- .../host/html/HTMLCanvasElementTest.java | 80 +++++++++++-------- .../protocol/data/DataURLDecoderTest.java | 12 +-- 2 files changed, 52 insertions(+), 40 deletions(-) diff --git a/src/test/java/org/htmlunit/javascript/host/html/HTMLCanvasElementTest.java b/src/test/java/org/htmlunit/javascript/host/html/HTMLCanvasElementTest.java index 82b56b7517..d3b0436645 100644 --- a/src/test/java/org/htmlunit/javascript/host/html/HTMLCanvasElementTest.java +++ b/src/test/java/org/htmlunit/javascript/host/html/HTMLCanvasElementTest.java @@ -63,23 +63,29 @@ public void test() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGJJREFUeF7t1AEJAAAMAsHZv/RyPN" - + "wSyDncOQIECEQEFskpJgECBM5geQICBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGD" - + "lalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBD" - + "ICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfID" - + "BAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAY" - + "PlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUo" - + "AQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDla" - + "lKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDIC" - + "BitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBA" - + "hkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPl" - + "BwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQ" - + "IGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalK" - + "UAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBi" - + "tTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhk" - + "BAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBw" - + "gQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIG" - + "yw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAgQdWMQCX4yW9owAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAF2UlEQVR4AezU227bOhAFUOP8/0efvDhokNiWRJGcyyoKtL" + + "ElcmbtYP/38IcAAQJJBBRWkqCMSYDA46Gw/BYQIJBGQGGliWp8UCcQyC6gsLInaH4CjQQUVqOwrUogu4DCyp6g+Qn8JVD0" + + "M4VVNFhrEagooLAqpmonAkUFFFbRYK1FoKKAwvorVZ8RIBBSQGGFjMVQBAj8JaCw/lLxGQECIQUUVshYDLVOwE2ZBBRWpr" + + "TMSqC5gMJq/gtgfQKZBBRWprTMSqC5wGBhNdezPgECSwUU1lJulxEgMCKgsEb0vEuAwFIBhbWUO/VlhiewXUBhbY/AAAQI" + + "HBVQWEelPEeAwHYBhbU9AgMQiCcQdSKFFTUZcxEg8EtAYf0i8QEBAlEFFFbUZMxFgMAvAYX1i2T8AycQIDBHQGHNcXUqAQ" + + "ITBBTWBFRHEiAwR0BhzXF1ahcBey4VUFhLuV1GgMCIgMIa0fMuAQJLBRTWUm6XESAwIrC3sEYm9y4BAu0EFFa7yC1MIK+A" + + "wsqbnckJtBNQWO0i37WwewmMCyiscUMnECCwSEBhLYJ2DQEC4wIKa9zQCQQI/BSY9pPCmkbrYAIE7hZQWHeLOo8AgWkCCm" + + "sarYMJELhbQGHdLTp+nhMIEHghoLBewPiYAIF4AgorXiYmIkDghYDCegHjYwIrBNxxTkBhnfPyNAECGwUU1kZ8VxMgcE5A" + + "YZ3z8jQBAhsFUhfWRjdXEyCwQUBhbUB3JQEC1wQU1jU3bxEgsEFAYW1Ad+UFAa8Q+BJQWF8I/hIgkENAYeXIyZQECHwJKK" + + "wvBH8JEIgk8HoWhfXaxjcECAQTUFjBAjEOAQKvBRTWaxvfECAQTEBhBQtkfBwnEKgroLDqZmszAuUEFFa5SC1EoK6Awqqb" + + "rc3qC7TbUGG1i9zCBPIKKKy82ZmcQDsBhdUucgsTyCvQubDypmZyAk0FFFbT4K1NIKOAwsqYmpkJNBVQWE2D77a2fWsIKK" + + "waOdqCQAsBhdUiZksSqCGgsGrkaAsCLQQOFVYLCUsSIBBeQGGFj8iABAg8BRTWU8K/BAiEF1BY4SNaPKDrCAQWUFiBwzEa" + + "AQI/BRTWTw8/ESAQWEBhBQ7HaATmCuQ7XWHly8zEBNoKKKy20VucQD4BhZUvMxMTaCugsC5H70UCBFYLKKzV4u4jQOCygM" + + "K6TOdFAgRWCyis1eLuyyhg5iACCitIEMYgQOCzgML6bOQJAgSCCCisIEEYgwCBzwIrCuvzFJ4gQIDAAQGFdQDJIwQIxBBQ" + + "WDFyMAUBAgcEFNYBJI8cF/AkgZkCCmumrrMJELhVQGHdyukwAgRmCiismbrOJlBZYMNuCmsDuisJELgmoLCuuXmLAIENAg" + + "prA7orCRC4JqCwrrmNv+UEAgROCyis02ReIEBgl4DC2iXvXgIETgsorNNkXiBwVsDzdwkorLsknUOAwHQBhTWd2AUECNwl" + + "oLDuknQOAQLTBRIU1nQDFxAgkERAYSUJypgECDweCstvAQECaQQUVpqoWgxqSQJvBRTWWx5fEiAQSUBhRUrDLAQIvBVQWG" + + "95fEmAwCyBK+cqrCtq3iFAYIuAwtrC7lICBK4IKKwrat4hQGCLgMLawj5+qRMIdBRQWB1TtzOBpAIKK2lwxibQUUBhdUzd" + + "zrkETPstoLC+KfyHAIHoAgorekLmI0DgW0BhfVP4DwEC0QXqF1b0BMxHgMBhAYV1mMqDBAjsFlBYuxNwPwEChwUU1mEqD8" + + "YXMGF1AYVVPWH7ESgkoLAKhWkVAtUFFFb1hO1HoJDAP4VVaCurECBQUkBhlYzVUgRqCiismrnaikBJAYVVMtaPS3mAQEoB" + + "hZUyNkMT6CmgsHrmbmsCKQUUVsrYDE3guEClJxVWpTTtQqC4gMIqHrD1CFQSUFiV0rQLgeICCutDwL4mQCCOgMKKk4VJCB" + + "D4IKCwPgD5mgCBOAIKK04WJtkt4P7wAgorfEQGJEDgKaCwnhL+JUAgvIDCCh+RAQkQeAr8DwAA//+Cw3OPAAAABklEQVQD" + + "AOx/AS0pote3AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAEYklEQVR4Xu3UAQkAAAwCwdm/9HI83BLIOdw5AgQIRAQWyS" + "kmAQIEzmB5AgIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAj" @@ -140,23 +146,29 @@ public void toDataUrl() throws Exception { */ @Test @Alerts(DEFAULT = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGJJREFUeF7t1AEJAAAMAsHZv/RyPN" - + "wSyDncOQIECEQEFskpJgECBM5geQICBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGD" - + "lalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBD" - + "ICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfID" - + "BAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAY" - + "PlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUo" - + "AQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDla" - + "lKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDIC" - + "BitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBA" - + "hkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPl" - + "BwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQ" - + "IGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalK" - + "UAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBi" - + "tTlaAECBgsP0CAQEbAYGWqEpQAAYPlBwgQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhk" - + "BAxWpipBCRAwWH6AAIGMgMHKVCUoAQIGyw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAAYPlBw" - + "gQyAgYrExVghIgYLD8AAECGQGDlalKUAIEDJYfIEAgI2CwMlUJSoCAwfIDBAhkBAxWpipBCRAwWH6AAIGMgMHKVCUoAQIG" - + "yw8QIJARMFiZqgQlQMBg+QECBDICBitTlaAECBgsP0CAQEbAYGWqEpQAgQdWMQCX4yW9owAAAABJRU5ErkJggg==", + + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAF2UlEQVR4AezU227bOhAFUOP8/0efvDhokNiWRJGcyyoKtL" + + "ElcmbtYP/38IcAAQJJBBRWkqCMSYDA46Gw/BYQIJBGQGGliWp8UCcQyC6gsLInaH4CjQQUVqOwrUogu4DCyp6g+Qn8JVD0" + + "M4VVNFhrEagooLAqpmonAkUFFFbRYK1FoKKAwvorVZ8RIBBSQGGFjMVQBAj8JaCw/lLxGQECIQUUVshYDLVOwE2ZBBRWpr" + + "TMSqC5gMJq/gtgfQKZBBRWprTMSqC5wGBhNdezPgECSwUU1lJulxEgMCKgsEb0vEuAwFIBhbWUO/VlhiewXUBhbY/AAAQI" + + "HBVQWEelPEeAwHYBhbU9AgMQiCcQdSKFFTUZcxEg8EtAYf0i8QEBAlEFFFbUZMxFgMAvAYX1i2T8AycQIDBHQGHNcXUqAQ" + + "ITBBTWBFRHEiAwR0BhzXF1ahcBey4VUFhLuV1GgMCIgMIa0fMuAQJLBRTWUm6XESAwIrC3sEYm9y4BAu0EFFa7yC1MIK+A" + + "wsqbnckJtBNQWO0i37WwewmMCyiscUMnECCwSEBhLYJ2DQEC4wIKa9zQCQQI/BSY9pPCmkbrYAIE7hZQWHeLOo8AgWkCCm" + + "sarYMJELhbQGHdLTp+nhMIEHghoLBewPiYAIF4AgorXiYmIkDghYDCegHjYwIrBNxxTkBhnfPyNAECGwUU1kZ8VxMgcE5A" + + "YZ3z8jQBAhsFUhfWRjdXEyCwQUBhbUB3JQEC1wQU1jU3bxEgsEFAYW1Ad+UFAa8Q+BJQWF8I/hIgkENAYeXIyZQECHwJKK" + + "wvBH8JEIgk8HoWhfXaxjcECAQTUFjBAjEOAQKvBRTWaxvfECAQTEBhBQtkfBwnEKgroLDqZmszAuUEFFa5SC1EoK6Awqqb" + + "rc3qC7TbUGG1i9zCBPIKKKy82ZmcQDsBhdUucgsTyCvQubDypmZyAk0FFFbT4K1NIKOAwsqYmpkJNBVQWE2D77a2fWsIKK" + + "waOdqCQAsBhdUiZksSqCGgsGrkaAsCLQQOFVYLCUsSIBBeQGGFj8iABAg8BRTWU8K/BAiEF1BY4SNaPKDrCAQWUFiBwzEa" + + "AQI/BRTWTw8/ESAQWEBhBQ7HaATmCuQ7XWHly8zEBNoKKKy20VucQD4BhZUvMxMTaCugsC5H70UCBFYLKKzV4u4jQOCygM" + + "K6TOdFAgRWCyis1eLuyyhg5iACCitIEMYgQOCzgML6bOQJAgSCCCisIEEYgwCBzwIrCuvzFJ4gQIDAAQGFdQDJIwQIxBBQ" + + "WDFyMAUBAgcEFNYBJI8cF/AkgZkCCmumrrMJELhVQGHdyukwAgRmCiismbrOJlBZYMNuCmsDuisJELgmoLCuuXmLAIENAg" + + "prA7orCRC4JqCwrrmNv+UEAgROCyis02ReIEBgl4DC2iXvXgIETgsorNNkXiBwVsDzdwkorLsknUOAwHQBhTWd2AUECNwl" + + "oLDuknQOAQLTBRIU1nQDFxAgkERAYSUJypgECDweCstvAQECaQQUVpqoWgxqSQJvBRTWWx5fEiAQSUBhRUrDLAQIvBVQWG" + + "95fEmAwCyBK+cqrCtq3iFAYIuAwtrC7lICBK4IKKwrat4hQGCLgMLawj5+qRMIdBRQWB1TtzOBpAIKK2lwxibQUUBhdUzd" + + "zrkETPstoLC+KfyHAIHoAgorekLmI0DgW0BhfVP4DwEC0QXqF1b0BMxHgMBhAYV1mMqDBAjsFlBYuxNwPwEChwUU1mEqD8" + + "YXMGF1AYVVPWH7ESgkoLAKhWkVAtUFFFb1hO1HoJDAP4VVaCurECBQUkBhlYzVUgRqCiismrnaikBJAYVVMtaPS3mAQEoB" + + "hZUyNkMT6CmgsHrmbmsCKQUUVsrYDE3guEClJxVWpTTtQqC4gMIqHrD1CFQSUFiV0rQLgeICCutDwL4mQCCOgMKKk4VJCB" + + "D4IKCwPgD5mgCBOAIKK04WJtkt4P7wAgorfEQGJEDgKaCwnhL+JUAgvIDCCh+RAQkQeAr8DwAA//+Cw3OPAAAABklEQVQD" + + "AOx/AS0pote3AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAEYklEQVR4Xu3UAQkAAAwCwdm/9HI83BLIOdw5AgQIRAQWyS" + "kmAQIEzmB5AgIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAj" diff --git a/src/test/java/org/htmlunit/protocol/data/DataURLDecoderTest.java b/src/test/java/org/htmlunit/protocol/data/DataURLDecoderTest.java index 34fff04227..dc4649b523 100644 --- a/src/test/java/org/htmlunit/protocol/data/DataURLDecoderTest.java +++ b/src/test/java/org/htmlunit/protocol/data/DataURLDecoderTest.java @@ -64,13 +64,13 @@ public void dataProtocol() throws Exception { */ @Test @Alerts(CHROME = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHBJREFUOE+tkkkOACAIA+3/H40hEYOI" - + "iAtXYKBNQURUHgq3AACFbx8DeJFLHu8AaWTUaNUDILLDHnA/WAH026GETrU6m2Es7xgwLUQmDua0Qe14+gM9eA0QiDU25UGU" - + "hS9BcpNode8SOQXpC2B31etXnvKZ0TEDfq8AAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAjUlEQVR4AaSQAQ7EIAgEnf7/z3e3mjXSwLW2JgQEdkCPz8tz" + + "tIcH6MptANCA9ls8AmAU4L+XymLFYQMVKlOzDXDYAmBmTwEMgeCnUg4A+jvX5kys+uUGgPpKSwGeBkPse0ZJAVljlSsBnmq/" + + "DZDgSqyesAHQfx9qL9FqE3Bn2ip0PAFO7PoA0BZ3zYO+AAAA//+f6uVAAAAABklEQVQDACTlk+G7ekp7AAAAAElFTkSuQmCC", EDGE = "data:image/png;base64," - + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHBJREFUOE+tkkkOACAIA+3/H40hEYOI" - + "iAtXYKBNQURUHgq3AACFbx8DeJFLHu8AaWTUaNUDILLDHnA/WAH026GETrU6m2Es7xgwLUQmDua0Qe14+gM9eA0QiDU25UGU" - + "hS9BcpNode8SOQXpC2B31etXnvKZ0TEDfq8AAAAASUVORK5CYII=", + + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAjUlEQVR4AaSQAQ7EIAgEnf7/z3e3mjXSwLW2JgQEdkCPz8tz" + + "tIcH6MptANCA9ls8AmAU4L+XymLFYQMVKlOzDXDYAmBmTwEMgeCnUg4A+jvX5kys+uUGgPpKSwGeBkPse0ZJAVljlSsBnmq/" + + "DZDgSqyesAHQfx9qL9FqE3Bn2ip0PAFO7PoA0BZ3zYO+AAAA//+f6uVAAAAABklEQVQDACTlk+G7ekp7AAAAAElFTkSuQmCC", FF = "data:image/png;base64," + "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAcElEQVQ4T62SSQ4AIAgD7f8frZKIQUTEhSsw0KbItdJD4RYA" + "INHtYwAtUvHjHcCNiBqpegB4dugD5gcrgHzbldCpWmczjOQdA6YFz8TBnDYoHQ9/IAevAQzRxoY88LLwJUhmErXuXSKnIH0B" From c2fd4a4df8cbab62fc956c563a35dc6ecbb75ec9 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:54:45 +0200 Subject: [PATCH 15/39] Chrome/Edge 139, Firefox 141 --- .../org/htmlunit/css/StyleAttributes.java | 59 ++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/htmlunit/css/StyleAttributes.java b/src/main/java/org/htmlunit/css/StyleAttributes.java index 9d6f20247f..33eb5a2b58 100644 --- a/src/main/java/org/htmlunit/css/StyleAttributes.java +++ b/src/main/java/org/htmlunit/css/StyleAttributes.java @@ -997,6 +997,57 @@ public enum Definition { /** The style property {@code content-visibility}. */ CONTENT_VISISBILITY_("content-visibility", "content-visibility", ff("visible")), + /** The style property {@code cornerBlockEndShape}. */ + CORNER_BLOCK_END_SHAPE("cornerBlockEndShape", "corner-block-end-shape", chromeAndEdge("round")), + + /** The style property {@code cornerBlockStartShape}. */ + CORNER_BLOCK_START_SHAPE("cornerBlockStartShape", "corner-block-start-shape", chromeAndEdge("round")), + + /** The style property {@code cornerBottomLeftShape}. */ + CORNER_BOTTOM_LEFT_SHAPE("cornerBottomLeftShape", "corner-bottom-left-shape", chromeAndEdge("round")), + + /** The style property {@code cornerBottomRightShape}. */ + CORNER_BOTTOM_RIGHT_SHAPE("cornerBottomRightShape", "corner-bottom-right-shape", chromeAndEdge("round")), + + /** The style property {@code cornerBottomShape}. */ + CORNER_BOTTOM_SHAPE("cornerBottomShape", "corner-bottom-shape", chromeAndEdge("round")), + + /** The style property {@code cornerEndEndShape}. */ + CORNER_END_END_SHAPE("cornerEndEndShape", "corner-end-end-shape", chromeAndEdge("round")), + + /** The style property {@code cornerEndStartShape}. */ + CORNER_END_START_SHAPE("cornerEndStartShape", "corner-end-start-shape", chromeAndEdge("round")), + + /** The style property {@code cornerInlineEndShape}. */ + CORNER_INLINE_END_SHAPE("cornerInlineEndShape", "corner-inline-end-shape", chromeAndEdge("round")), + + /** The style property {@code cornerInlineStartShape}. */ + CORNER_INLINE_START_SHAPE("cornerInlineStartShape", "corner-inline-start-shape", chromeAndEdge("round")), + + /** The style property {@code cornerLeftShape}. */ + CORNER_LEFT_SHAPE("cornerLeftShape", "corner-left-shape", chromeAndEdge("round")), + + /** The style property {@code cornerRightShape}. */ + CORNER_RIGHT_SHAPE("cornerRightShape", "corner-right-shape", chromeAndEdge("round")), + + /** The style property {@code cornerShape}. */ + CORNER_SHAPE("cornerShape", "corner-shape", chromeAndEdge("round")), + + /** The style property {@code cornerStartEndShape}. */ + CORNER_START_END_SHAPE("cornerStartEndShape", "corner-start-end-shape", chromeAndEdge("round")), + + /** The style property {@code cornerStartStartShape}. */ + CORNER_START_START_SHAPE("cornerStartStartShape", "corner-start-start-shape", chromeAndEdge("round")), + + /** The style property {@code cornerTopLeftShape}. */ + CORNER_TOP_LEFT_SHAPE("cornerTopLeftShape", "corner-top-left-shape", chromeAndEdge("round")), + + /** The style property {@code cornerTopRightShape}. */ + CORNER_TOP_RIGHT_SHAPE("cornerTopRightShape", "corner-top-right-shape", chromeAndEdge("round")), + + /** The style property {@code cornerTopShape}. */ + CORNER_TOP_SHAPE("cornerTopShape", "corner-top-shape", chromeAndEdge("round")), + /** The style property {@code counterIncrement}. */ COUNTER_INCREMENT("counterIncrement", "counter-increment", chromeAndEdgeNone(), ffNone()), @@ -1266,7 +1317,10 @@ public enum Definition { FONT_VARIANT_EAST_ASIAN_("font-variant-east-asian", "font-variant-east-asian", ffNormal()), /** The style property {@code fontVariantEmoji}. */ - FONT_VARIANT_EMOKJI("fontVariantEmoji", "font-variant-emoji", chromeAndEdgeNormal()), + FONT_VARIANT_EMOKJI("fontVariantEmoji", "font-variant-emoji", ffLatest("normal"), chromeAndEdgeNormal()), + + /** The style property {@code fontVariantEmoji}. */ + FONT_VARIANT_EMOKJI_("font-variant-emoji", "font-variant-emoji", ffLatest("normal")), /** The style property {@code fontVariantLigatures}. */ FONT_VARIANT_LIGATURES("fontVariantLigatures", "font-variant-ligatures", ffNormal(), chromeAndEdgeNormal()), @@ -2553,6 +2607,9 @@ public enum Definition { /** The style property {@code resize}. */ RESIZE("resize", "resize", ffNone(), chromeAndEdgeNone()), + /** The style property {@code resize}. */ + RESULT("result", "result", chromeAndEdge("")), + /** The style property {@code right}. */ RIGHT("right", "right", chromeAndEdgeAuto(), ff("")), From 994207a03ab276f915152367a71e2a418a52c966 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 13:59:30 +0200 Subject: [PATCH 16/39] Chrome/Edge 139, Firefox 141 --- src/test/java/org/htmlunit/ExternalTest.java | 4 ++-- .../javascript/host/worker/WorkerNavigatorTest.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/htmlunit/ExternalTest.java b/src/test/java/org/htmlunit/ExternalTest.java index b443a5bb7a..77795535f4 100644 --- a/src/test/java/org/htmlunit/ExternalTest.java +++ b/src/test/java/org/htmlunit/ExternalTest.java @@ -53,11 +53,11 @@ public class ExternalTest { static String MAVEN_REPO_URL_ = "https://repo1.maven.org/maven2/"; /** Chrome driver. */ - static String CHROME_DRIVER_ = "138.0.7204"; + static String CHROME_DRIVER_ = "139.0.7258"; static String CHROME_DRIVER_URL_ = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json"; - static String EDGE_DRIVER_ = "138.0.3351"; + static String EDGE_DRIVER_ = "139.0.3405"; static String EDGE_DRIVER_URL_ = "https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/"; /** Gecko driver. */ diff --git a/src/test/java/org/htmlunit/javascript/host/worker/WorkerNavigatorTest.java b/src/test/java/org/htmlunit/javascript/host/worker/WorkerNavigatorTest.java index 06ed32fb9b..12e4536f13 100644 --- a/src/test/java/org/htmlunit/javascript/host/worker/WorkerNavigatorTest.java +++ b/src/test/java/org/htmlunit/javascript/host/worker/WorkerNavigatorTest.java @@ -80,9 +80,9 @@ public void appName() throws Exception { */ @Test @Alerts(CHROME = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s" - + "(KHTML,\\slike\\sGecko)\\sChrome/138.0.0.0\\sSafari/537.36", + + "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36", EDGE = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s" - + "(KHTML,\\slike\\sGecko)\\sChrome/138.0.0.0\\sSafari/537.36\\sEdg/138.0.0.0", + + "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36\\sEdg/139.0.0.0", FF = "5.0\\s(Windows)", FF_ESR = "5.0\\s(Windows)") public void appVersion() throws Exception { @@ -163,10 +163,10 @@ public void product() throws Exception { */ @Test @Alerts(CHROME = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s" - + "(KHTML,\\slike\\sGecko)\\sChrome/138.0.0.0\\sSafari/537.36", + + "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36", EDGE = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s" - + "(KHTML,\\slike\\sGecko)\\sChrome/138.0.0.0\\sSafari/537.36\\sEdg/138.0.0.0", - FF = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:140.0)\\sGecko/20100101\\sFirefox/140.0", + + "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36\\sEdg/139.0.0.0", + FF = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:141.0)\\sGecko/20100101\\sFirefox/141.0", FF_ESR = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:128.0)\\sGecko/20100101\\sFirefox/128.0") public void userAgent() throws Exception { final String workerJs = "postMessage(navigator.userAgent);\n"; From 9333a8a92e69fe8025f977c70f7af14fdfbaf607 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 14:18:34 +0200 Subject: [PATCH 17/39] dummy impl of PointerEvent#getPersistentDeviceId() returning always 0 added --- src/changes/changes.xml | 9 ++++++++- .../htmlunit/javascript/host/event/PointerEvent.java | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index d67b1c9189..be07eb9c9f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -7,7 +7,14 @@ - + + + Dummy impl of PointerEvent#getPersistentDeviceId() returning always 0. + + + The parser for the refresh header has been rewritten. + Thanks to a series of additional tests, we are now much closer to real browsers. + core-js: TypedArray.from and TypedArray.of implemented. diff --git a/src/main/java/org/htmlunit/javascript/host/event/PointerEvent.java b/src/main/java/org/htmlunit/javascript/host/event/PointerEvent.java index 163f626c33..a1e668f1c1 100644 --- a/src/main/java/org/htmlunit/javascript/host/event/PointerEvent.java +++ b/src/main/java/org/htmlunit/javascript/host/event/PointerEvent.java @@ -217,4 +217,14 @@ public double getAltitudeAngle() { public double getAzimuthAngle() { return 0d; } + + /** + * @return the persistentDeviceId + */ + @JsxGetter({CHROME, EDGE, FF}) + public double getPersistentDeviceId() { + // dummy but valid regarding to the spec + // https://w3c.github.io/pointerevents/#dom-pointerevent-persistentdeviceid + return 0d; + } } From 46fe6888d60a4ff66be83879f4e3ddd4a86f2502 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 14:23:11 +0200 Subject: [PATCH 18/39] Chrome/Edge 139 --- .../htmlunit/general/HostClassNameTest.java | 25 +++++++++++++++---- .../org/htmlunit/general/HostTypeOfTest.java | 25 +++++++++++++++---- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/htmlunit/general/HostClassNameTest.java b/src/test/java/org/htmlunit/general/HostClassNameTest.java index cb2d37371f..8d6bd72f7b 100644 --- a/src/test/java/org/htmlunit/general/HostClassNameTest.java +++ b/src/test/java/org/htmlunit/general/HostClassNameTest.java @@ -7112,7 +7112,10 @@ public void sourceBufferList() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("ReferenceError") + @Alerts(DEFAULT = "ReferenceError", + CHROME = "function SpeechGrammar() { [native code] }", + EDGE = "function SpeechGrammar() { [native code] }") + @HtmlUnitNYI(CHROME = "ReferenceError", EDGE = "ReferenceError") public void speechGrammar() throws Exception { test("SpeechGrammar"); } @@ -7121,7 +7124,10 @@ public void speechGrammar() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("ReferenceError") + @Alerts(DEFAULT = "ReferenceError", + CHROME = "function SpeechGrammarList() { [native code] }", + EDGE = "function SpeechGrammarList() { [native code] }") + @HtmlUnitNYI(CHROME = "ReferenceError", EDGE = "ReferenceError") public void speechGrammarList() throws Exception { test("SpeechGrammarList"); } @@ -7130,7 +7136,10 @@ public void speechGrammarList() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("ReferenceError") + @Alerts(DEFAULT = "ReferenceError", + CHROME = "function SpeechRecognition() { [native code] }", + EDGE = "function SpeechRecognition() { [native code] }") + @HtmlUnitNYI(CHROME = "ReferenceError", EDGE = "ReferenceError") public void speechRecognition() throws Exception { test("SpeechRecognition"); } @@ -7157,7 +7166,10 @@ public void speechRecognitionError() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("ReferenceError") + @Alerts(DEFAULT = "ReferenceError", + CHROME = "function SpeechRecognitionErrorEvent() { [native code] }", + EDGE = "function SpeechRecognitionErrorEvent() { [native code] }") + @HtmlUnitNYI(CHROME = "ReferenceError", EDGE = "ReferenceError") public void speechRecognitionErrorEvent() throws Exception { test("SpeechRecognitionErrorEvent"); } @@ -7166,7 +7178,10 @@ public void speechRecognitionErrorEvent() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("ReferenceError") + @Alerts(DEFAULT = "ReferenceError", + CHROME = "function SpeechRecognitionEvent() { [native code] }", + EDGE = "function SpeechRecognitionEvent() { [native code] }") + @HtmlUnitNYI(CHROME = "ReferenceError", EDGE = "ReferenceError") public void speechRecognitionEvent() throws Exception { test("SpeechRecognitionEvent"); } diff --git a/src/test/java/org/htmlunit/general/HostTypeOfTest.java b/src/test/java/org/htmlunit/general/HostTypeOfTest.java index 5f9f5b5291..e31a67f92f 100644 --- a/src/test/java/org/htmlunit/general/HostTypeOfTest.java +++ b/src/test/java/org/htmlunit/general/HostTypeOfTest.java @@ -7094,7 +7094,10 @@ public void sourceBufferList() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("undefined") + @Alerts(DEFAULT = "undefined", + CHROME = "function", + EDGE = "function") + @HtmlUnitNYI(CHROME = "undefined", EDGE = "undefined") public void speechGrammar() throws Exception { test("SpeechGrammar"); } @@ -7103,7 +7106,10 @@ public void speechGrammar() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("undefined") + @Alerts(DEFAULT = "undefined", + CHROME = "function", + EDGE = "function") + @HtmlUnitNYI(CHROME = "undefined", EDGE = "undefined") public void speechGrammarList() throws Exception { test("SpeechGrammarList"); } @@ -7112,7 +7118,10 @@ public void speechGrammarList() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("undefined") + @Alerts(DEFAULT = "undefined", + CHROME = "function", + EDGE = "function") + @HtmlUnitNYI(CHROME = "undefined", EDGE = "undefined") public void speechRecognition() throws Exception { test("SpeechRecognition"); } @@ -7139,7 +7148,10 @@ public void speechRecognitionError() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("undefined") + @Alerts(DEFAULT = "undefined", + CHROME = "function", + EDGE = "function") + @HtmlUnitNYI(CHROME = "undefined", EDGE = "undefined") public void speechRecognitionErrorEvent() throws Exception { test("SpeechRecognitionErrorEvent"); } @@ -7148,7 +7160,10 @@ public void speechRecognitionErrorEvent() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("undefined") + @Alerts(DEFAULT = "undefined", + CHROME = "function", + EDGE = "function") + @HtmlUnitNYI(CHROME = "undefined", EDGE = "undefined") public void speechRecognitionEvent() throws Exception { test("SpeechRecognitionEvent"); } From 3ec13be2bbda966d733aca752241ef32366392c5 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 14:36:11 +0200 Subject: [PATCH 19/39] Chrome/Edge 139, Firefox 141 --- .../general/ElementOwnPropertiesTest.java | 29 +- .../general/ElementPropertiesTest.java | 474 ++++++++++-------- 2 files changed, 272 insertions(+), 231 deletions(-) diff --git a/src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java b/src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java index ab30e9a70f..29b05c08cc 100644 --- a/src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java +++ b/src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java @@ -4862,7 +4862,7 @@ public void details() throws Exception { + "showModal()", EDGE = "close(),closedBy[GSCE],constructor(),open[GSCE],requestClose(),returnValue[GSCE],show()," + "showModal()", - FF = "close(),constructor(),open[GSCE],requestClose(),returnValue[GSCE],show(),showModal()", + FF = "close(),closedBy[GSCE],constructor(),open[GSCE],requestClose(),returnValue[GSCE],show(),showModal()", FF_ESR = "close(),constructor(),open[GSCE],returnValue[GSCE],show(),showModal()") @HtmlUnitNYI(CHROME = "close(),constructor(),open[GSCE],returnValue[GSCE],show(),showModal()", EDGE = "close(),constructor(),open[GSCE],returnValue[GSCE],show(),showModal()", @@ -14936,7 +14936,8 @@ public void dragEvent() throws Exception { + "tangentialPressure[GCE],tiltX[GCE],tiltY[GCE],twist[GCE]," + "width[GCE]", FF = "altitudeAngle[GCE],azimuthAngle[GCE],constructor(),getCoalescedEvents(),getPredictedEvents()," - + "height[GCE],isPrimary[GCE],pointerId[GCE],pointerType[GCE],pressure[GCE],tangentialPressure[GCE]," + + "height[GCE],isPrimary[GCE],persistentDeviceId[GCE]," + + "pointerId[GCE],pointerType[GCE],pressure[GCE],tangentialPressure[GCE]," + "tiltX[GCE],tiltY[GCE],twist[GCE]," + "width[GCE]", FF_ESR = "constructor(),getCoalescedEvents(),getPredictedEvents(),height[GCE],isPrimary[GCE]," @@ -14944,11 +14945,14 @@ public void dragEvent() throws Exception { + "twist[GCE]," + "width[GCE]") @HtmlUnitNYI(CHROME = "altitudeAngle[GCE],azimuthAngle[GCE],constructor(),height[GCE],isPrimary[GCE]," - + "pointerId[GCE],pointerType[GCE],pressure[GCE],tiltX[GCE],tiltY[GCE],width[GCE]", + + "persistentDeviceId[GCE],pointerId[GCE],pointerType[GCE],pressure[GCE]," + + "tiltX[GCE],tiltY[GCE],width[GCE]", EDGE = "altitudeAngle[GCE],azimuthAngle[GCE],constructor(),height[GCE],isPrimary[GCE]," - + "pointerId[GCE],pointerType[GCE],pressure[GCE],tiltX[GCE],tiltY[GCE],width[GCE]", + + "persistentDeviceId[GCE],pointerId[GCE],pointerType[GCE],pressure[GCE]," + + "tiltX[GCE],tiltY[GCE],width[GCE]", FF = "altitudeAngle[GCE],azimuthAngle[GCE],constructor(),height[GCE],isPrimary[GCE]," - + "pointerId[GCE],pointerType[GCE],pressure[GCE],tiltX[GCE],tiltY[GCE],width[GCE]", + + "persistentDeviceId[GCE],pointerId[GCE],pointerType[GCE],pressure[GCE]," + + "tiltX[GCE],tiltY[GCE],width[GCE]", FF_ESR = "constructor(),height[GCE],isPrimary[GCE],pointerId[GCE],pointerType[GCE]," + "pressure[GCE],tiltX[GCE],tiltY[GCE],width[GCE]") public void pointerEvent() throws Exception { @@ -16256,14 +16260,16 @@ public void nodeListButtonLabels() throws Exception { + "font-size-adjust[GSCE],font-size[GSCE],font-stretch[GSCE],font-style[GSCE]," + "font-synthesis-position[GSCE],font-synthesis-small-caps[GSCE],font-synthesis-style[GSCE]," + "font-synthesis-weight[GSCE],font-synthesis[GSCE],font-variant-alternates[GSCE]," - + "font-variant-caps[GSCE],font-variant-east-asian[GSCE],font-variant-ligatures[GSCE]," + + "font-variant-caps[GSCE],font-variant-east-asian[GSCE],font-variant-emoji[GSCE]," + + "font-variant-ligatures[GSCE]," + "font-variant-numeric[GSCE],font-variant-position[GSCE],font-variant[GSCE]," + "font-variation-settings[GSCE],font-weight[GSCE],font[GSCE],fontFamily[GSCE]," + "fontFeatureSettings[GSCE],fontKerning[GSCE],fontLanguageOverride[GSCE],fontOpticalSizing[GSCE]," + "fontPalette[GSCE],fontSize[GSCE],fontSizeAdjust[GSCE],fontStretch[GSCE],fontStyle[GSCE]," + "fontSynthesis[GSCE],fontSynthesisPosition[GSCE],fontSynthesisSmallCaps[GSCE]," + "fontSynthesisStyle[GSCE],fontSynthesisWeight[GSCE],fontVariant[GSCE],fontVariantAlternates[GSCE]," - + "fontVariantCaps[GSCE],fontVariantEastAsian[GSCE],fontVariantLigatures[GSCE]," + + "fontVariantCaps[GSCE],fontVariantEastAsian[GSCE],fontVariantEmoji[GSCE]," + + "fontVariantLigatures[GSCE]," + "fontVariantNumeric[GSCE],fontVariantPosition[GSCE],fontVariationSettings[GSCE],fontWeight[GSCE]," + "forced-color-adjust[GSCE],forcedColorAdjust[GSCE],gap[GSCE],grid-area[GSCE]," + "grid-auto-columns[GSCE],grid-auto-flow[GSCE],grid-auto-rows[GSCE],grid-column-end[GSCE]," @@ -16895,14 +16901,16 @@ public void computedStyle() throws Exception { + "font-size-adjust[GSCE],font-size[GSCE],font-stretch[GSCE],font-style[GSCE]," + "font-synthesis-position[GSCE],font-synthesis-small-caps[GSCE],font-synthesis-style[GSCE]," + "font-synthesis-weight[GSCE],font-synthesis[GSCE],font-variant-alternates[GSCE]," - + "font-variant-caps[GSCE],font-variant-east-asian[GSCE],font-variant-ligatures[GSCE]," + + "font-variant-caps[GSCE],font-variant-east-asian[GSCE],font-variant-emoji[GSCE]," + + "font-variant-ligatures[GSCE]," + "font-variant-numeric[GSCE],font-variant-position[GSCE],font-variant[GSCE]," + "font-variation-settings[GSCE],font-weight[GSCE],font[GSCE],fontFamily[GSCE]," + "fontFeatureSettings[GSCE],fontKerning[GSCE],fontLanguageOverride[GSCE],fontOpticalSizing[GSCE]," + "fontPalette[GSCE],fontSize[GSCE],fontSizeAdjust[GSCE],fontStretch[GSCE],fontStyle[GSCE]," + "fontSynthesis[GSCE],fontSynthesisPosition[GSCE],fontSynthesisSmallCaps[GSCE]," + "fontSynthesisStyle[GSCE],fontSynthesisWeight[GSCE],fontVariant[GSCE],fontVariantAlternates[GSCE]," - + "fontVariantCaps[GSCE],fontVariantEastAsian[GSCE],fontVariantLigatures[GSCE]," + + "fontVariantCaps[GSCE],fontVariantEastAsian[GSCE],fontVariantEmoji[GSCE]," + + "fontVariantLigatures[GSCE]," + "fontVariantNumeric[GSCE],fontVariantPosition[GSCE],fontVariationSettings[GSCE],fontWeight[GSCE]," + "forced-color-adjust[GSCE],forcedColorAdjust[GSCE],gap[GSCE],grid-area[GSCE]," + "grid-auto-columns[GSCE],grid-auto-flow[GSCE],grid-auto-rows[GSCE],grid-column-end[GSCE]," @@ -18190,7 +18198,8 @@ public void mimeType() throws Exception { + "xr[GCE]", FF = "appCodeName[GCE],appName[GCE],appVersion[GCE],buildID[GCE],clipboard[GCE],constructor()," + "cookieEnabled[GCE],credentials[GCE],doNotTrack[GCE],geolocation[GCE],getAutoplayPolicy()," - + "getGamepads(),globalPrivacyControl[GCE],hardwareConcurrency[GCE],javaEnabled(),language[GCE]," + + "getGamepads(),globalPrivacyControl[GCE],gpu[GCE]," + + "hardwareConcurrency[GCE],javaEnabled(),language[GCE]," + "languages[GCE],locks[GCE],login[GCE],maxTouchPoints[GCE],mediaCapabilities[GCE]," + "mediaDevices[GCE],mediaSession[GCE],mimeTypes[GCE],mozGetUserMedia(),onLine[GCE],oscpu[GCE]," + "pdfViewerEnabled[GCE],permissions[GCE],platform[GCE],plugins[GCE],product[GCE],productSub[GCE]," diff --git a/src/test/java/org/htmlunit/general/ElementPropertiesTest.java b/src/test/java/org/htmlunit/general/ElementPropertiesTest.java index 1c19ea99bc..2205e3df4a 100644 --- a/src/test/java/org/htmlunit/general/ElementPropertiesTest.java +++ b/src/test/java/org/htmlunit/general/ElementPropertiesTest.java @@ -1747,7 +1747,7 @@ public void details() throws Exception { @Test @Alerts(CHROME = "close(),closedBy,open,requestClose(),returnValue,show(),showModal()", EDGE = "close(),closedBy,open,requestClose(),returnValue,show(),showModal()", - FF = "close(),open,requestClose(),returnValue,show(),showModal()", + FF = "close(),closedBy,open,requestClose(),returnValue,show(),showModal()", FF_ESR = "close(),open,returnValue,show(),showModal()") @HtmlUnitNYI(CHROME = "close(),open,returnValue,show(),showModal()", EDGE = "close(),open,returnValue,show(),showModal()", @@ -3830,15 +3830,17 @@ public void dragEvent() throws Exception { EDGE = "altitudeAngle,azimuthAngle,getCoalescedEvents(),getPredictedEvents(),height,isPrimary," + "persistentDeviceId,pointerId,pointerType,pressure,tangentialPressure,tiltX,tiltY,twist," + "width", - FF = "altitudeAngle,azimuthAngle,getCoalescedEvents(),getPredictedEvents(),height,isPrimary,pointerId," - + "pointerType,pressure,tangentialPressure,tiltX,tiltY,twist," + FF = "altitudeAngle,azimuthAngle,getCoalescedEvents(),getPredictedEvents(),height,isPrimary," + + "persistentDeviceId,pointerId,pointerType,pressure,tangentialPressure,tiltX,tiltY,twist," + "width", FF_ESR = "getCoalescedEvents(),getPredictedEvents(),height,isPrimary,pointerId,pointerType,pressure," + "tangentialPressure,tiltX,tiltY,twist,width") - @HtmlUnitNYI(CHROME = "altitudeAngle,azimuthAngle,height," - + "isPrimary,pointerId,pointerType,pressure,tiltX,tiltY,width", - EDGE = "altitudeAngle,azimuthAngle,height,isPrimary,pointerId,pointerType,pressure,tiltX,tiltY,width", - FF = "altitudeAngle,azimuthAngle,height,isPrimary,pointerId,pointerType,pressure,tiltX,tiltY,width", + @HtmlUnitNYI(CHROME = "altitudeAngle,azimuthAngle,height,isPrimary,persistentDeviceId,pointerId," + + "pointerType,pressure,tiltX,tiltY,width", + EDGE = "altitudeAngle,azimuthAngle,height,isPrimary,persistentDeviceId,pointerId," + + "pointerType,pressure,tiltX,tiltY,width", + FF = "altitudeAngle,azimuthAngle,height,isPrimary,persistentDeviceId,pointerId,pointerType,pressure," + + "tiltX,tiltY,width", FF_ESR = "height,isPrimary,pointerId,pointerType,pressure,tiltX,tiltY,width") public void pointerEvent() throws Exception { testString("", "new PointerEvent('click'), document.createEvent('MouseEvent')"); @@ -6214,21 +6216,21 @@ public void nodeListButtonLabels() throws Exception { */ @Test @Alerts(CHROME = "0,1,10,100,101,102,103,104,105,106,107,108,109,11,110,111,112,113,114,115,116,117,118,119,12,120," - + "121,122,123,124,125,126,127,128,129,13,130,131,132,133,134,135,136,137,138,139,14,140,141,142," - + "143,144,145,146,147,148,149,15,150,151,152,153,154,155,156,157,158,159,16,160,161,162,163,164," - + "165,166,167,168,169,17,170,171,172,173,174,175,176,177,178,179,18,180,181,182,183,184,185,186," - + "187,188,189,19,190,191,192,193,194,195,196,197,198,199,2,20,200,201,202,203,204,205,206,207,208," - + "209,21,210,211,212,213,214,215,216,217,218,219,22,220,221,222,223,224,225,226,227,228,229,23,230," - + "231,232,233,234,235,236,237,238,239,24,240,241,242,243,244,245,246,247,248,249,25,250,251,252," - + "253,254,255,256,257,258,259,26,260,261,262,263,264,265,266,267,268,269,27,270,271,272,273,274," - + "275,276,277,278,279,28,280,281,282,283,284,285,286,287,288,289,29,290,291,292,293,294,295,296," - + "297,298,299,3,30,300,301,302,303,304,305,306,307,308,309,31,310,311,312,313,314,315,316,317,318," - + "319,32,320,321,322,323,324,325,326,327,328,329,33,330,331,332,333,334,335,336,337,338,339,34,340," - + "341,342,343,344,345,346,347,348,349,35,350,351,352,353,354,355,356,357,358,359,36,360,361,362," - + "363,364,365,366,367,368,369,37,370,371,372,373,374,375,376,377,378,379,38,380,381,382,383,384," - + "385,386,387,388,389,39,390,391,392,393,4,40,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57," - + "58,59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87," - + "88,89,9,90,91,92,93,94,95,96,97,98,99,accentColor,additiveSymbols,alignContent,alignItems," + + "121,122,123,124,125,126,127,128,129,13,130,131,132,133,134,135,136,137,138,139,14,140,141,142,143," + + "144,145,146,147,148,149,15,150,151,152,153,154,155,156,157,158,159,16,160,161,162,163,164,165,166," + + "167,168,169,17,170,171,172,173,174,175,176,177,178,179,18,180,181,182,183,184,185,186,187,188,189," + + "19,190,191,192,193,194,195,196,197,198,199,2,20,200,201,202,203,204,205,206,207,208,209,21,210,211," + + "212,213,214,215,216,217,218,219,22,220,221,222,223,224,225,226,227,228,229,23,230,231,232,233,234," + + "235,236,237,238,239,24,240,241,242,243,244,245,246,247,248,249,25,250,251,252,253,254,255,256,257," + + "258,259,26,260,261,262,263,264,265,266,267,268,269,27,270,271,272,273,274,275,276,277,278,279,28," + + "280,281,282,283,284,285,286,287,288,289,29,290,291,292,293,294,295,296,297,298,299,3,30,300,301," + + "302,303,304,305,306,307,308,309,31,310,311,312,313,314,315,316,317,318,319,32,320,321,322,323,324," + + "325,326,327,328,329,33,330,331,332,333,334,335,336,337,338,339,34,340,341,342,343,344,345,346,347," + + "348,349,35,350,351,352,353,354,355,356,357,358,359,36,360,361,362,363,364,365,366,367,368,369,37," + + "370,371,372,373,374,375,376,377,378,379,38,380,381,382,383,384,385,386,387,388,389,39,390,391,392," + + "393,394,395,396,397,398,399,4,40,400,401,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57,58," + + "59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87,88,89," + + "9,90,91,92,93,94,95,96,97,98,99,accentColor,additiveSymbols,alignContent,alignItems," + "alignmentBaseline,alignSelf,all,anchorName,anchorScope,animation,animationComposition," + "animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount," + "animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart," @@ -6237,24 +6239,27 @@ public void nodeListButtonLabels() throws Exception { + "backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition," + "backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,baselineShift," + "baselineSource,basePalette,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd," - + "borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart," - + "borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle," - + "borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius," - + "borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius," - + "borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice," - + "borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd," - + "borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart," - + "borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle," - + "borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius," - + "borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing," - + "borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor," - + "borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom," - + "boxDecorationBreak,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,bufferedRendering," - + "captionSide,caretColor,clear,clip,clipPath,clipRule,color,colorInterpolation," - + "colorInterpolationFilters,colorRendering,colorScheme,columnCount,columnFill,columnGap,columnRule," - + "columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan,columnWidth,contain,container," - + "containerName,containerType,containIntrinsicBlockSize,containIntrinsicHeight," - + "containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,content,contentVisibility," + + "borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor," + + "borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom," + + "borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle," + + "borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius," + + "borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource," + + "borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor," + + "borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor," + + "borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft," + + "borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor," + + "borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius," + + "borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle," + + "borderTopWidth,borderWidth,bottom,boxDecorationBreak,boxShadow,boxSizing,breakAfter,breakBefore," + + "breakInside,bufferedRendering,captionSide,caretColor,clear,clip,clipPath,clipRule,color," + + "colorInterpolation,colorInterpolationFilters,colorRendering,colorScheme,columnCount,columnFill," + + "columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan," + + "columnWidth,contain,container,containerName,containerType,containIntrinsicBlockSize," + + "containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth," + + "content,contentVisibility,cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape," + + "cornerBottomRightShape,cornerBottomShape,cornerEndEndShape,cornerEndStartShape," + + "cornerInlineEndShape,cornerInlineStartShape,cornerLeftShape,cornerRightShape,cornerShape," + + "cornerStartEndShape,cornerStartStartShape,cornerTopLeftShape,cornerTopRightShape,cornerTopShape," + "counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy,d,descentOverride," + "direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback,fieldSizing,fill," + "fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap," @@ -6276,91 +6281,90 @@ public void nodeListButtonLabels() throws Exception { + "maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,mathDepth,mathShift," + "mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxWidth,minBlockSize,minHeight,minInlineSize," + "minWidth,mixBlendMode,navigation,negative,objectFit,objectPosition,objectViewBox,offset," - + "offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline," - + "outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock," - + "overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overrideColors," - + "overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX," - + "overscrollBehaviorY,pad,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom," - + "paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page," - + "pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation,paintOrder,parentRule,perspective," - + "perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor," - + "positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,prefix," - + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right,rotate," - + "rowGap,rubyAlign,rubyPosition,rx,ry,scale,scrollbarColor,scrollbarGutter,scrollbarWidth," - + "scrollBehavior,scrollInitialTarget,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd," - + "scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd," - + "scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarkerGroup," - + "scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart," - + "scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart," - + "scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapStop," - + "scrollSnapType,scrollTimeline,scrollTimelineAxis,scrollTimelineName,setProperty()," - + "shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,size,sizeAdjust,speak,speakAs,src," - + "stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin," - + "strokeMiterlimit,strokeOpacity,strokeWidth,suffix,symbols,syntax,system,tableLayout,tabSize," - + "textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright," - + "textDecoration,textDecorationColor,textDecorationLine,textDecorationSkipInk,textDecorationStyle," - + "textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle," - + "textIndent,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim," - + "textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle," - + "timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition," - + "transitionBehavior,transitionDelay,transitionDuration,transitionProperty," - + "transitionTimingFunction,translate,types,unicodeBidi,unicodeRange,userSelect,vectorEffect," - + "verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName," + + "offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans," + + "outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor," + + "overflowBlock,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay," + + "overrideColors,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline," + + "overscrollBehaviorX,overscrollBehaviorY,pad,padding,paddingBlock,paddingBlockEnd," + + "paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft," + + "paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation," + + "paintOrder,parentRule,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf," + + "pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks," + + "positionTryOrder,positionVisibility,prefix,printColorAdjust,quotes,r,range,readingFlow," + + "readingOrder,removeProperty(),resize,result,right,rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + + "scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollInitialTarget," + + "scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom," + + "scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft," + + "scrollMarginRight,scrollMarginTop,scrollMarkerGroup,scrollPadding,scrollPaddingBlock," + + "scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline," + + "scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight," + + "scrollPaddingTop,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollTimeline,scrollTimelineAxis," + + "scrollTimelineName,setProperty(),shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering," + + "size,sizeAdjust,speak,speakAs,src,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset," + + "strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,suffix,symbols,syntax," + + "system,tableLayout,tabSize,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim," + + "textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkipInk," + + "textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition," + + "textEmphasisStyle,textIndent,textOrientation,textOverflow,textRendering,textShadow," + + "textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap," + + "textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin," + + "transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration," + + "transitionProperty,transitionTimingFunction,translate,types,unicodeBidi,unicodeRange,userSelect," + + "vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName," + "viewTransitionClass,viewTransitionName,visibility,webkitAlignContent,webkitAlignItems," + "webkitAlignSelf,webkitAnimation,webkitAnimationDelay,webkitAnimationDirection," - + "webkitAnimationDuration,webkitAnimationFillMode,webkitAnimationIterationCount," - + "webkitAnimationName,webkitAnimationPlayState,webkitAnimationTimingFunction,webkitAppearance," - + "webkitAppRegion,webkitBackfaceVisibility,webkitBackgroundClip,webkitBackgroundOrigin," - + "webkitBackgroundSize,webkitBorderAfter,webkitBorderAfterColor,webkitBorderAfterStyle," - + "webkitBorderAfterWidth,webkitBorderBefore,webkitBorderBeforeColor,webkitBorderBeforeStyle," - + "webkitBorderBeforeWidth,webkitBorderBottomLeftRadius,webkitBorderBottomRightRadius," - + "webkitBorderEnd,webkitBorderEndColor,webkitBorderEndStyle,webkitBorderEndWidth," - + "webkitBorderHorizontalSpacing,webkitBorderImage,webkitBorderRadius,webkitBorderStart," - + "webkitBorderStartColor,webkitBorderStartStyle,webkitBorderStartWidth,webkitBorderTopLeftRadius," - + "webkitBorderTopRightRadius,webkitBorderVerticalSpacing,webkitBoxAlign,webkitBoxDecorationBreak," - + "webkitBoxDirection,webkitBoxFlex,webkitBoxOrdinalGroup,webkitBoxOrient,webkitBoxPack," - + "webkitBoxReflect,webkitBoxShadow,webkitBoxSizing,webkitClipPath,webkitColumnBreakAfter," - + "webkitColumnBreakBefore,webkitColumnBreakInside,webkitColumnCount,webkitColumnGap," - + "webkitColumnRule,webkitColumnRuleColor,webkitColumnRuleStyle,webkitColumnRuleWidth,webkitColumns," - + "webkitColumnSpan,webkitColumnWidth,webkitFilter,webkitFlex,webkitFlexBasis,webkitFlexDirection," - + "webkitFlexFlow,webkitFlexGrow,webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings," - + "webkitFontSmoothing,webkitHyphenateCharacter,webkitJustifyContent,webkitLineBreak," - + "webkitLineClamp,webkitLocale,webkitLogicalHeight,webkitLogicalWidth,webkitMarginAfter," - + "webkitMarginBefore,webkitMarginEnd,webkitMarginStart,webkitMask,webkitMaskBoxImage," - + "webkitMaskBoxImageOutset,webkitMaskBoxImageRepeat,webkitMaskBoxImageSlice," - + "webkitMaskBoxImageSource,webkitMaskBoxImageWidth,webkitMaskClip,webkitMaskComposite," - + "webkitMaskImage,webkitMaskOrigin,webkitMaskPosition,webkitMaskPositionX,webkitMaskPositionY," - + "webkitMaskRepeat,webkitMaskSize,webkitMaxLogicalHeight,webkitMaxLogicalWidth," - + "webkitMinLogicalHeight,webkitMinLogicalWidth,webkitOpacity,webkitOrder,webkitPaddingAfter," - + "webkitPaddingBefore,webkitPaddingEnd,webkitPaddingStart,webkitPerspective," - + "webkitPerspectiveOrigin,webkitPerspectiveOriginX,webkitPerspectiveOriginY,webkitPrintColorAdjust," - + "webkitRtlOrdering,webkitRubyPosition,webkitShapeImageThreshold,webkitShapeMargin," - + "webkitShapeOutside,webkitTapHighlightColor,webkitTextCombine,webkitTextDecorationsInEffect," - + "webkitTextEmphasis,webkitTextEmphasisColor,webkitTextEmphasisPosition,webkitTextEmphasisStyle," - + "webkitTextFillColor,webkitTextOrientation,webkitTextSecurity,webkitTextSizeAdjust," - + "webkitTextStroke,webkitTextStrokeColor,webkitTextStrokeWidth,webkitTransform," - + "webkitTransformOrigin,webkitTransformOriginX,webkitTransformOriginY,webkitTransformOriginZ," - + "webkitTransformStyle,webkitTransition,webkitTransitionDelay,webkitTransitionDuration," - + "webkitTransitionProperty,webkitTransitionTimingFunction,webkitUserDrag,webkitUserModify," - + "webkitUserSelect,webkitWritingMode,whiteSpace,whiteSpaceCollapse,widows,width,willChange," - + "wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex," - + "zoom", + + "webkitAnimationDuration,webkitAnimationFillMode,webkitAnimationIterationCount,webkitAnimationName," + + "webkitAnimationPlayState,webkitAnimationTimingFunction,webkitAppearance,webkitAppRegion," + + "webkitBackfaceVisibility,webkitBackgroundClip,webkitBackgroundOrigin,webkitBackgroundSize," + + "webkitBorderAfter,webkitBorderAfterColor,webkitBorderAfterStyle,webkitBorderAfterWidth," + + "webkitBorderBefore,webkitBorderBeforeColor,webkitBorderBeforeStyle,webkitBorderBeforeWidth," + + "webkitBorderBottomLeftRadius,webkitBorderBottomRightRadius,webkitBorderEnd,webkitBorderEndColor," + + "webkitBorderEndStyle,webkitBorderEndWidth,webkitBorderHorizontalSpacing,webkitBorderImage," + + "webkitBorderRadius,webkitBorderStart,webkitBorderStartColor,webkitBorderStartStyle," + + "webkitBorderStartWidth,webkitBorderTopLeftRadius,webkitBorderTopRightRadius," + + "webkitBorderVerticalSpacing,webkitBoxAlign,webkitBoxDecorationBreak,webkitBoxDirection," + + "webkitBoxFlex,webkitBoxOrdinalGroup,webkitBoxOrient,webkitBoxPack,webkitBoxReflect," + + "webkitBoxShadow,webkitBoxSizing,webkitClipPath,webkitColumnBreakAfter,webkitColumnBreakBefore," + + "webkitColumnBreakInside,webkitColumnCount,webkitColumnGap,webkitColumnRule,webkitColumnRuleColor," + + "webkitColumnRuleStyle,webkitColumnRuleWidth,webkitColumns,webkitColumnSpan,webkitColumnWidth," + + "webkitFilter,webkitFlex,webkitFlexBasis,webkitFlexDirection,webkitFlexFlow,webkitFlexGrow," + + "webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings,webkitFontSmoothing," + + "webkitHyphenateCharacter,webkitJustifyContent,webkitLineBreak,webkitLineClamp,webkitLocale," + + "webkitLogicalHeight,webkitLogicalWidth,webkitMarginAfter,webkitMarginBefore,webkitMarginEnd," + + "webkitMarginStart,webkitMask,webkitMaskBoxImage,webkitMaskBoxImageOutset," + + "webkitMaskBoxImageRepeat,webkitMaskBoxImageSlice,webkitMaskBoxImageSource," + + "webkitMaskBoxImageWidth,webkitMaskClip,webkitMaskComposite,webkitMaskImage,webkitMaskOrigin," + + "webkitMaskPosition,webkitMaskPositionX,webkitMaskPositionY,webkitMaskRepeat,webkitMaskSize," + + "webkitMaxLogicalHeight,webkitMaxLogicalWidth,webkitMinLogicalHeight,webkitMinLogicalWidth," + + "webkitOpacity,webkitOrder,webkitPaddingAfter,webkitPaddingBefore,webkitPaddingEnd," + + "webkitPaddingStart,webkitPerspective,webkitPerspectiveOrigin,webkitPerspectiveOriginX," + + "webkitPerspectiveOriginY,webkitPrintColorAdjust,webkitRtlOrdering,webkitRubyPosition," + + "webkitShapeImageThreshold,webkitShapeMargin,webkitShapeOutside,webkitTapHighlightColor," + + "webkitTextCombine,webkitTextDecorationsInEffect,webkitTextEmphasis,webkitTextEmphasisColor," + + "webkitTextEmphasisPosition,webkitTextEmphasisStyle,webkitTextFillColor,webkitTextOrientation," + + "webkitTextSecurity,webkitTextSizeAdjust,webkitTextStroke,webkitTextStrokeColor," + + "webkitTextStrokeWidth,webkitTransform,webkitTransformOrigin,webkitTransformOriginX," + + "webkitTransformOriginY,webkitTransformOriginZ,webkitTransformStyle,webkitTransition," + + "webkitTransitionDelay,webkitTransitionDuration,webkitTransitionProperty," + + "webkitTransitionTimingFunction,webkitUserDrag,webkitUserModify,webkitUserSelect," + + "webkitWritingMode,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak," + + "wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom", EDGE = "0,1,10,100,101,102,103,104,105,106,107,108,109,11,110,111,112,113,114,115,116,117,118,119,12,120," - + "121,122,123,124,125,126,127,128,129,13,130,131,132,133,134,135,136,137,138,139,14,140,141,142," - + "143,144,145,146,147,148,149,15,150,151,152,153,154,155,156,157,158,159,16,160,161,162,163,164," - + "165,166,167,168,169,17,170,171,172,173,174,175,176,177,178,179,18,180,181,182,183,184,185,186," - + "187,188,189,19,190,191,192,193,194,195,196,197,198,199,2,20,200,201,202,203,204,205,206,207,208," - + "209,21,210,211,212,213,214,215,216,217,218,219,22,220,221,222,223,224,225,226,227,228,229,23,230," - + "231,232,233,234,235,236,237,238,239,24,240,241,242,243,244,245,246,247,248,249,25,250,251,252," - + "253,254,255,256,257,258,259,26,260,261,262,263,264,265,266,267,268,269,27,270,271,272,273,274," - + "275,276,277,278,279,28,280,281,282,283,284,285,286,287,288,289,29,290,291,292,293,294,295,296," - + "297,298,299,3,30,300,301,302,303,304,305,306,307,308,309,31,310,311,312,313,314,315,316,317,318," - + "319,32,320,321,322,323,324,325,326,327,328,329,33,330,331,332,333,334,335,336,337,338,339,34,340," - + "341,342,343,344,345,346,347,348,349,35,350,351,352,353,354,355,356,357,358,359,36,360,361,362," - + "363,364,365,366,367,368,369,37,370,371,372,373,374,375,376,377,378,379,38,380,381,382,383,384," - + "385,386,387,388,389,39,390,391,392,393,4,40,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57," - + "58,59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87," - + "88,89,9,90,91,92,93,94,95,96,97,98,99,accentColor,additiveSymbols,alignContent,alignItems," + + "121,122,123,124,125,126,127,128,129,13,130,131,132,133,134,135,136,137,138,139,14,140,141,142,143," + + "144,145,146,147,148,149,15,150,151,152,153,154,155,156,157,158,159,16,160,161,162,163,164,165,166," + + "167,168,169,17,170,171,172,173,174,175,176,177,178,179,18,180,181,182,183,184,185,186,187,188,189," + + "19,190,191,192,193,194,195,196,197,198,199,2,20,200,201,202,203,204,205,206,207,208,209,21,210,211," + + "212,213,214,215,216,217,218,219,22,220,221,222,223,224,225,226,227,228,229,23,230,231,232,233,234," + + "235,236,237,238,239,24,240,241,242,243,244,245,246,247,248,249,25,250,251,252,253,254,255,256,257," + + "258,259,26,260,261,262,263,264,265,266,267,268,269,27,270,271,272,273,274,275,276,277,278,279,28," + + "280,281,282,283,284,285,286,287,288,289,29,290,291,292,293,294,295,296,297,298,299,3,30,300,301," + + "302,303,304,305,306,307,308,309,31,310,311,312,313,314,315,316,317,318,319,32,320,321,322,323,324," + + "325,326,327,328,329,33,330,331,332,333,334,335,336,337,338,339,34,340,341,342,343,344,345,346,347," + + "348,349,35,350,351,352,353,354,355,356,357,358,359,36,360,361,362,363,364,365,366,367,368,369,37," + + "370,371,372,373,374,375,376,377,378,379,38,380,381,382,383,384,385,386,387,388,389,39,390,391,392," + + "393,394,395,396,397,398,399,4,40,400,401,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57,58," + + "59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87,88,89," + + "9,90,91,92,93,94,95,96,97,98,99,accentColor,additiveSymbols,alignContent,alignItems," + "alignmentBaseline,alignSelf,all,anchorName,anchorScope,animation,animationComposition," + "animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount," + "animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart," @@ -6369,24 +6373,27 @@ public void nodeListButtonLabels() throws Exception { + "backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition," + "backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,baselineShift," + "baselineSource,basePalette,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd," - + "borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart," - + "borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle," - + "borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius," - + "borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius," - + "borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice," - + "borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd," - + "borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart," - + "borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle," - + "borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius," - + "borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing," - + "borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor," - + "borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom," - + "boxDecorationBreak,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,bufferedRendering," - + "captionSide,caretColor,clear,clip,clipPath,clipRule,color,colorInterpolation," - + "colorInterpolationFilters,colorRendering,colorScheme,columnCount,columnFill,columnGap,columnRule," - + "columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan,columnWidth,contain,container," - + "containerName,containerType,containIntrinsicBlockSize,containIntrinsicHeight," - + "containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,content,contentVisibility," + + "borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor," + + "borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom," + + "borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle," + + "borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius," + + "borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource," + + "borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor," + + "borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor," + + "borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft," + + "borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor," + + "borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius," + + "borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle," + + "borderTopWidth,borderWidth,bottom,boxDecorationBreak,boxShadow,boxSizing,breakAfter,breakBefore," + + "breakInside,bufferedRendering,captionSide,caretColor,clear,clip,clipPath,clipRule,color," + + "colorInterpolation,colorInterpolationFilters,colorRendering,colorScheme,columnCount,columnFill," + + "columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan," + + "columnWidth,contain,container,containerName,containerType,containIntrinsicBlockSize," + + "containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth," + + "content,contentVisibility,cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape," + + "cornerBottomRightShape,cornerBottomShape,cornerEndEndShape,cornerEndStartShape," + + "cornerInlineEndShape,cornerInlineStartShape,cornerLeftShape,cornerRightShape,cornerShape," + + "cornerStartEndShape,cornerStartStartShape,cornerTopLeftShape,cornerTopRightShape,cornerTopShape," + "counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy,d,descentOverride," + "direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback,fieldSizing,fill," + "fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap," @@ -6408,75 +6415,74 @@ public void nodeListButtonLabels() throws Exception { + "maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,mathDepth,mathShift," + "mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxWidth,minBlockSize,minHeight,minInlineSize," + "minWidth,mixBlendMode,navigation,negative,objectFit,objectPosition,objectViewBox,offset," - + "offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline," - + "outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock," - + "overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overrideColors," - + "overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX," - + "overscrollBehaviorY,pad,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom," - + "paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page," - + "pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation,paintOrder,parentRule,perspective," - + "perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor," - + "positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,prefix," - + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right,rotate," - + "rowGap,rubyAlign,rubyPosition,rx,ry,scale,scrollbarColor,scrollbarGutter,scrollbarWidth," - + "scrollBehavior,scrollInitialTarget,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd," - + "scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd," - + "scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarkerGroup," - + "scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart," - + "scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart," - + "scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapStop," - + "scrollSnapType,scrollTimeline,scrollTimelineAxis,scrollTimelineName,setProperty()," - + "shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,size,sizeAdjust,speak,speakAs,src," - + "stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin," - + "strokeMiterlimit,strokeOpacity,strokeWidth,suffix,symbols,syntax,system,tableLayout,tabSize," - + "textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright," - + "textDecoration,textDecorationColor,textDecorationLine,textDecorationSkipInk,textDecorationStyle," - + "textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle," - + "textIndent,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim," - + "textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle," - + "timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition," - + "transitionBehavior,transitionDelay,transitionDuration,transitionProperty," - + "transitionTimingFunction,translate,types,unicodeBidi,unicodeRange,userSelect,vectorEffect," - + "verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName," + + "offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans," + + "outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor," + + "overflowBlock,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay," + + "overrideColors,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline," + + "overscrollBehaviorX,overscrollBehaviorY,pad,padding,paddingBlock,paddingBlockEnd," + + "paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft," + + "paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation," + + "paintOrder,parentRule,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf," + + "pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks," + + "positionTryOrder,positionVisibility,prefix,printColorAdjust,quotes,r,range,readingFlow," + + "readingOrder,removeProperty(),resize,result,right,rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + + "scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollInitialTarget," + + "scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom," + + "scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft," + + "scrollMarginRight,scrollMarginTop,scrollMarkerGroup,scrollPadding,scrollPaddingBlock," + + "scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline," + + "scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight," + + "scrollPaddingTop,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollTimeline,scrollTimelineAxis," + + "scrollTimelineName,setProperty(),shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering," + + "size,sizeAdjust,speak,speakAs,src,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset," + + "strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,suffix,symbols,syntax," + + "system,tableLayout,tabSize,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim," + + "textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkipInk," + + "textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition," + + "textEmphasisStyle,textIndent,textOrientation,textOverflow,textRendering,textShadow," + + "textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap," + + "textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin," + + "transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration," + + "transitionProperty,transitionTimingFunction,translate,types,unicodeBidi,unicodeRange,userSelect," + + "vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName," + "viewTransitionClass,viewTransitionName,visibility,webkitAlignContent,webkitAlignItems," + "webkitAlignSelf,webkitAnimation,webkitAnimationDelay,webkitAnimationDirection," - + "webkitAnimationDuration,webkitAnimationFillMode,webkitAnimationIterationCount," - + "webkitAnimationName,webkitAnimationPlayState,webkitAnimationTimingFunction,webkitAppearance," - + "webkitAppRegion,webkitBackfaceVisibility,webkitBackgroundClip,webkitBackgroundOrigin," - + "webkitBackgroundSize,webkitBorderAfter,webkitBorderAfterColor,webkitBorderAfterStyle," - + "webkitBorderAfterWidth,webkitBorderBefore,webkitBorderBeforeColor,webkitBorderBeforeStyle," - + "webkitBorderBeforeWidth,webkitBorderBottomLeftRadius,webkitBorderBottomRightRadius," - + "webkitBorderEnd,webkitBorderEndColor,webkitBorderEndStyle,webkitBorderEndWidth," - + "webkitBorderHorizontalSpacing,webkitBorderImage,webkitBorderRadius,webkitBorderStart," - + "webkitBorderStartColor,webkitBorderStartStyle,webkitBorderStartWidth,webkitBorderTopLeftRadius," - + "webkitBorderTopRightRadius,webkitBorderVerticalSpacing,webkitBoxAlign,webkitBoxDecorationBreak," - + "webkitBoxDirection,webkitBoxFlex,webkitBoxOrdinalGroup,webkitBoxOrient,webkitBoxPack," - + "webkitBoxReflect,webkitBoxShadow,webkitBoxSizing,webkitClipPath,webkitColumnBreakAfter," - + "webkitColumnBreakBefore,webkitColumnBreakInside,webkitColumnCount,webkitColumnGap," - + "webkitColumnRule,webkitColumnRuleColor,webkitColumnRuleStyle,webkitColumnRuleWidth,webkitColumns," - + "webkitColumnSpan,webkitColumnWidth,webkitFilter,webkitFlex,webkitFlexBasis,webkitFlexDirection," - + "webkitFlexFlow,webkitFlexGrow,webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings," - + "webkitFontSmoothing,webkitHyphenateCharacter,webkitJustifyContent,webkitLineBreak," - + "webkitLineClamp,webkitLocale,webkitLogicalHeight,webkitLogicalWidth,webkitMarginAfter," - + "webkitMarginBefore,webkitMarginEnd,webkitMarginStart,webkitMask,webkitMaskBoxImage," - + "webkitMaskBoxImageOutset,webkitMaskBoxImageRepeat,webkitMaskBoxImageSlice," - + "webkitMaskBoxImageSource,webkitMaskBoxImageWidth,webkitMaskClip,webkitMaskComposite," - + "webkitMaskImage,webkitMaskOrigin,webkitMaskPosition,webkitMaskPositionX,webkitMaskPositionY," - + "webkitMaskRepeat,webkitMaskSize,webkitMaxLogicalHeight,webkitMaxLogicalWidth," - + "webkitMinLogicalHeight,webkitMinLogicalWidth,webkitOpacity,webkitOrder,webkitPaddingAfter," - + "webkitPaddingBefore,webkitPaddingEnd,webkitPaddingStart,webkitPerspective," - + "webkitPerspectiveOrigin,webkitPerspectiveOriginX,webkitPerspectiveOriginY,webkitPrintColorAdjust," - + "webkitRtlOrdering,webkitRubyPosition,webkitShapeImageThreshold,webkitShapeMargin," - + "webkitShapeOutside,webkitTapHighlightColor,webkitTextCombine,webkitTextDecorationsInEffect," - + "webkitTextEmphasis,webkitTextEmphasisColor,webkitTextEmphasisPosition,webkitTextEmphasisStyle," - + "webkitTextFillColor,webkitTextOrientation,webkitTextSecurity,webkitTextSizeAdjust," - + "webkitTextStroke,webkitTextStrokeColor,webkitTextStrokeWidth,webkitTransform," - + "webkitTransformOrigin,webkitTransformOriginX,webkitTransformOriginY,webkitTransformOriginZ," - + "webkitTransformStyle,webkitTransition,webkitTransitionDelay,webkitTransitionDuration," - + "webkitTransitionProperty,webkitTransitionTimingFunction,webkitUserDrag,webkitUserModify," - + "webkitUserSelect,webkitWritingMode,whiteSpace,whiteSpaceCollapse,widows,width,willChange," - + "wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex," - + "zoom", + + "webkitAnimationDuration,webkitAnimationFillMode,webkitAnimationIterationCount,webkitAnimationName," + + "webkitAnimationPlayState,webkitAnimationTimingFunction,webkitAppearance,webkitAppRegion," + + "webkitBackfaceVisibility,webkitBackgroundClip,webkitBackgroundOrigin,webkitBackgroundSize," + + "webkitBorderAfter,webkitBorderAfterColor,webkitBorderAfterStyle,webkitBorderAfterWidth," + + "webkitBorderBefore,webkitBorderBeforeColor,webkitBorderBeforeStyle,webkitBorderBeforeWidth," + + "webkitBorderBottomLeftRadius,webkitBorderBottomRightRadius,webkitBorderEnd,webkitBorderEndColor," + + "webkitBorderEndStyle,webkitBorderEndWidth,webkitBorderHorizontalSpacing,webkitBorderImage," + + "webkitBorderRadius,webkitBorderStart,webkitBorderStartColor,webkitBorderStartStyle," + + "webkitBorderStartWidth,webkitBorderTopLeftRadius,webkitBorderTopRightRadius," + + "webkitBorderVerticalSpacing,webkitBoxAlign,webkitBoxDecorationBreak,webkitBoxDirection," + + "webkitBoxFlex,webkitBoxOrdinalGroup,webkitBoxOrient,webkitBoxPack,webkitBoxReflect," + + "webkitBoxShadow,webkitBoxSizing,webkitClipPath,webkitColumnBreakAfter,webkitColumnBreakBefore," + + "webkitColumnBreakInside,webkitColumnCount,webkitColumnGap,webkitColumnRule,webkitColumnRuleColor," + + "webkitColumnRuleStyle,webkitColumnRuleWidth,webkitColumns,webkitColumnSpan,webkitColumnWidth," + + "webkitFilter,webkitFlex,webkitFlexBasis,webkitFlexDirection,webkitFlexFlow,webkitFlexGrow," + + "webkitFlexShrink,webkitFlexWrap,webkitFontFeatureSettings,webkitFontSmoothing," + + "webkitHyphenateCharacter,webkitJustifyContent,webkitLineBreak,webkitLineClamp,webkitLocale," + + "webkitLogicalHeight,webkitLogicalWidth,webkitMarginAfter,webkitMarginBefore,webkitMarginEnd," + + "webkitMarginStart,webkitMask,webkitMaskBoxImage,webkitMaskBoxImageOutset," + + "webkitMaskBoxImageRepeat,webkitMaskBoxImageSlice,webkitMaskBoxImageSource," + + "webkitMaskBoxImageWidth,webkitMaskClip,webkitMaskComposite,webkitMaskImage,webkitMaskOrigin," + + "webkitMaskPosition,webkitMaskPositionX,webkitMaskPositionY,webkitMaskRepeat,webkitMaskSize," + + "webkitMaxLogicalHeight,webkitMaxLogicalWidth,webkitMinLogicalHeight,webkitMinLogicalWidth," + + "webkitOpacity,webkitOrder,webkitPaddingAfter,webkitPaddingBefore,webkitPaddingEnd," + + "webkitPaddingStart,webkitPerspective,webkitPerspectiveOrigin,webkitPerspectiveOriginX," + + "webkitPerspectiveOriginY,webkitPrintColorAdjust,webkitRtlOrdering,webkitRubyPosition," + + "webkitShapeImageThreshold,webkitShapeMargin,webkitShapeOutside,webkitTapHighlightColor," + + "webkitTextCombine,webkitTextDecorationsInEffect,webkitTextEmphasis,webkitTextEmphasisColor," + + "webkitTextEmphasisPosition,webkitTextEmphasisStyle,webkitTextFillColor,webkitTextOrientation," + + "webkitTextSecurity,webkitTextSizeAdjust,webkitTextStroke,webkitTextStrokeColor," + + "webkitTextStrokeWidth,webkitTransform,webkitTransformOrigin,webkitTransformOriginX," + + "webkitTransformOriginY,webkitTransformOriginZ,webkitTransformStyle,webkitTransition," + + "webkitTransitionDelay,webkitTransitionDuration,webkitTransitionProperty," + + "webkitTransitionTimingFunction,webkitUserDrag,webkitUserModify,webkitUserSelect," + + "webkitWritingMode,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak," + + "wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom", FF = "-moz-animation,-moz-animation-delay,-moz-animation-direction,-moz-animation-duration," + "-moz-animation-fill-mode,-moz-animation-iteration-count,-moz-animation-name," + "-moz-animation-play-state,-moz-animation-timing-function,-moz-appearance," @@ -6520,7 +6526,8 @@ public void nodeListButtonLabels() throws Exception { + "298,299,3,30,300,301,302,303,304,305,306,307,308,309,31,310,311,312,313,314,315,316,317,318,319," + "32,320,321,322,323,324,325,326,327,328,329,33,330,331,332,333,334,335,336,337,338,339,34,340,341," + "342,343,344,345,346,347,348,349,35,350,351,352,353,354,355,356,357,358,359,36,360,361,362,363," - + "364,365,366,367,368,37,38,39,4,40,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57,58,59,6," + + "364,365,366,367,368,369," + + "37,38,39,4,40,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57,58,59,6," + "60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87,88,89,9," + "90,91,92,93,94,95,96,97,98,99,accent-color,accentColor,align-content,align-items,align-self," + "alignContent,alignItems,alignSelf,all,animation,animation-composition,animation-delay," @@ -6579,11 +6586,13 @@ public void nodeListButtonLabels() throws Exception { + "font-language-override,font-optical-sizing,font-palette,font-size,font-size-adjust,font-stretch," + "font-style,font-synthesis,font-synthesis-position,font-synthesis-small-caps,font-synthesis-style," + "font-synthesis-weight,font-variant,font-variant-alternates,font-variant-caps," - + "font-variant-east-asian,font-variant-ligatures,font-variant-numeric,font-variant-position," + + "font-variant-east-asian,font-variant-emoji," + + "font-variant-ligatures,font-variant-numeric,font-variant-position," + "font-variation-settings,font-weight,fontFamily,fontFeatureSettings,fontKerning," + "fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontStretch,fontStyle," + "fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle," + "fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian," + + "fontVariantEmoji," + "fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight," + "forced-color-adjust,forcedColorAdjust,gap,getPropertyPriority(),getPropertyValue(),grid," + "grid-area,grid-auto-columns,grid-auto-flow,grid-auto-rows,grid-column,grid-column-end," @@ -6961,7 +6970,12 @@ public void nodeListButtonLabels() throws Exception { + "container,containerName,containerType," + "containIntrinsicBlockSize," + "containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth," - + "content,contentVisibility,counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy," + + "content,contentVisibility," + + "cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape,cornerBottomRightShape," + + "cornerBottomShape,cornerEndEndShape,cornerEndStartShape,cornerInlineEndShape,cornerInlineStartShape," + + "cornerLeftShape,cornerRightShape,cornerShape,cornerStartEndShape,cornerStartStartShape," + + "cornerTopLeftShape,cornerTopRightShape,cornerTopShape,counterIncrement,counterReset,counterSet," + + "cssFloat,cssText,cursor,cx,cy," + "d,descentOverride,direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback," + "fieldSizing,fill,fillOpacity," + "fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float," @@ -6998,8 +7012,8 @@ public void nodeListButtonLabels() throws Exception { + "pageBreakInside,pageOrientation,paintOrder,parentRule,perspective,perspectiveOrigin,placeContent," + "placeItems,placeSelf,pointerEvents,position," + "positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility," - + "prefix,printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right," - + "rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + + "prefix,printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize," + + "result,right,rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + "scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollInitialTarget," + "scrollMargin,scrollMarginBlock," + "scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline," @@ -7094,7 +7108,12 @@ public void nodeListButtonLabels() throws Exception { + "columnRuleWidth,columns,columnSpan,columnWidth,contain," + "container,containerName,containerType,containIntrinsicBlockSize," + "containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth," - + "content,contentVisibility,counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy," + + "content,contentVisibility," + + "cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape,cornerBottomRightShape," + + "cornerBottomShape,cornerEndEndShape,cornerEndStartShape,cornerInlineEndShape," + + "cornerInlineStartShape,cornerLeftShape,cornerRightShape,cornerShape,cornerStartEndShape," + + "cornerStartStartShape,cornerTopLeftShape,cornerTopRightShape,cornerTopShape,counterIncrement," + + "counterReset,counterSet,cssFloat,cssText,cursor,cx,cy," + "d,descentOverride,direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback," + "fieldSizing,fill,fillOpacity," + "fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float," @@ -7131,8 +7150,8 @@ public void nodeListButtonLabels() throws Exception { + "pageBreakInside,pageOrientation,paintOrder,parentRule,perspective,perspectiveOrigin,placeContent," + "placeItems,placeSelf,pointerEvents,position," + "positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility," - + "prefix,printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right," - + "rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + + "prefix,printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize," + + "result,right,rotate,rowGap,rubyAlign,rubyPosition,rx,ry," + "scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollInitialTarget," + "scrollMargin,scrollMarginBlock," + "scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline," @@ -7294,14 +7313,15 @@ public void nodeListButtonLabels() throws Exception { + "font-size,font-size-adjust,font-stretch,font-style," + "font-synthesis,font-synthesis-position," + "font-synthesis-small-caps,font-synthesis-style,font-synthesis-weight," - + "font-variant,font-variant-alternates,font-variant-caps,font-variant-east-asian," + + "font-variant,font-variant-alternates,font-variant-caps,font-variant-east-asian,font-variant-emoji," + "font-variant-ligatures,font-variant-numeric,font-variant-position,font-variation-settings," + "font-weight,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing," + "fontPalette,fontSize,fontSizeAdjust,fontStretch,fontStyle," + "fontSynthesis,fontSynthesisPosition," + "fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight," + "fontVariant,fontVariantAlternates," - + "fontVariantCaps,fontVariantEastAsian,fontVariantLigatures,fontVariantNumeric,fontVariantPosition," + + "fontVariantCaps,fontVariantEastAsian,fontVariantEmoji," + + "fontVariantLigatures,fontVariantNumeric,fontVariantPosition," + "fontVariationSettings,fontWeight,forced-color-adjust,forcedColorAdjust," + "gap,getPropertyPriority(),getPropertyValue(),grid,grid-area," + "grid-auto-columns,grid-auto-flow,grid-auto-rows,grid-column,grid-column-end,grid-column-gap," @@ -7704,6 +7724,10 @@ public void computedStyle() throws Exception { + "columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan,columnWidth,contain,container," + "containerName,containerType,containIntrinsicBlockSize,containIntrinsicHeight," + "containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,content,contentVisibility," + + "cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape,cornerBottomRightShape," + + "cornerBottomShape,cornerEndEndShape,cornerEndStartShape,cornerInlineEndShape," + + "cornerInlineStartShape,cornerLeftShape,cornerRightShape,cornerShape,cornerStartEndShape," + + "cornerStartStartShape,cornerTopLeftShape,cornerTopRightShape,cornerTopShape," + "counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy,d,descentOverride," + "direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback,fieldSizing,fill," + "fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap," @@ -7734,7 +7758,8 @@ public void computedStyle() throws Exception { + "pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation,paintOrder,parentRule,perspective," + "perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor," + "positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,prefix," - + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right,rotate," + + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,result," + + "right,rotate," + "rowGap,rubyAlign,rubyPosition,rx,ry,scale,scrollbarColor,scrollbarGutter,scrollbarWidth," + "scrollBehavior,scrollInitialTarget,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd," + "scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd," @@ -7820,6 +7845,10 @@ public void computedStyle() throws Exception { + "columnRuleColor,columnRuleStyle,columnRuleWidth,columns,columnSpan,columnWidth,contain,container," + "containerName,containerType,containIntrinsicBlockSize,containIntrinsicHeight," + "containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,content,contentVisibility," + + "cornerBlockEndShape,cornerBlockStartShape,cornerBottomLeftShape,cornerBottomRightShape," + + "cornerBottomShape,cornerEndEndShape,cornerEndStartShape,cornerInlineEndShape," + + "cornerInlineStartShape,cornerLeftShape,cornerRightShape,cornerShape,cornerStartEndShape," + + "cornerStartStartShape,cornerTopLeftShape,cornerTopRightShape,cornerTopShape," + "counterIncrement,counterReset,counterSet,cssFloat,cssText,cursor,cx,cy,d,descentOverride," + "direction,display,dominantBaseline,dynamicRangeLimit,emptyCells,fallback,fieldSizing,fill," + "fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap," @@ -7850,7 +7879,8 @@ public void computedStyle() throws Exception { + "pageBreakAfter,pageBreakBefore,pageBreakInside,pageOrientation,paintOrder,parentRule,perspective," + "perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor," + "positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,prefix," - + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,right,rotate," + + "printColorAdjust,quotes,r,range,readingFlow,readingOrder,removeProperty(),resize,result," + + "right,rotate," + "rowGap,rubyAlign,rubyPosition,rx,ry,scale,scrollbarColor,scrollbarGutter,scrollbarWidth," + "scrollBehavior,scrollInitialTarget,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd," + "scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd," @@ -7998,11 +8028,13 @@ public void computedStyle() throws Exception { + "font-language-override,font-optical-sizing,font-palette,font-size,font-size-adjust,font-stretch," + "font-style,font-synthesis,font-synthesis-position,font-synthesis-small-caps,font-synthesis-style," + "font-synthesis-weight,font-variant,font-variant-alternates,font-variant-caps," - + "font-variant-east-asian,font-variant-ligatures,font-variant-numeric,font-variant-position," + + "font-variant-east-asian,font-variant-emoji," + + "font-variant-ligatures,font-variant-numeric,font-variant-position," + "font-variation-settings,font-weight,fontFamily,fontFeatureSettings,fontKerning," + "fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontStretch,fontStyle," + "fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle," + "fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian," + + "fontVariantEmoji," + "fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight," + "forced-color-adjust,forcedColorAdjust,gap,getPropertyPriority(),getPropertyValue(),grid," + "grid-area,grid-auto-columns,grid-auto-flow,grid-auto-rows,grid-column,grid-column-end," @@ -9379,7 +9411,7 @@ public void mimeType() throws Exception { + "windowControlsOverlay," + "xr", FF = "appCodeName,appName,appVersion,buildID,clipboard,cookieEnabled,credentials,doNotTrack," - + "geolocation,getAutoplayPolicy(),getGamepads(),globalPrivacyControl,hardwareConcurrency," + + "geolocation,getAutoplayPolicy(),getGamepads(),globalPrivacyControl,gpu,hardwareConcurrency," + "javaEnabled(),language,languages,locks,login,maxTouchPoints,mediaCapabilities,mediaDevices," + "mediaSession,mimeTypes,mozGetUserMedia(),onLine,oscpu,pdfViewerEnabled,permissions,platform," + "plugins,product,productSub,registerProtocolHandler(),requestMediaKeySystemAccess()," From 838bcf808dd68518814496a56e49afa01d694a52 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 14:43:38 +0200 Subject: [PATCH 20/39] Chrome/Edge 139 --- .../java/org/htmlunit/javascript/NativeArrayTest.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/htmlunit/javascript/NativeArrayTest.java b/src/test/java/org/htmlunit/javascript/NativeArrayTest.java index df2a660c49..10dc1c8523 100644 --- a/src/test/java/org/htmlunit/javascript/NativeArrayTest.java +++ b/src/test/java/org/htmlunit/javascript/NativeArrayTest.java @@ -36,9 +36,12 @@ public class NativeArrayTest extends WebDriverTestCase { */ @Test @Alerts(DEFAULT = {"1<>5", "5<>2", "1<>2", "5<>1", "2<>1", "1<>1", "5<>9"}, + CHROME = {"5<>1", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}, + EDGE = {"5<>1", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}) + @HtmlUnitNYI( CHROME = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}, - EDGE = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}) - @HtmlUnitNYI(FF = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}, + EDGE = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}, + FF = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}, FF_ESR = {"5<>1", "2<>5", "2<>5", "2<>1", "1<>2", "1<>1", "9<>2", "9<>5"}) public void sortSteps() throws Exception { final String html = DOCTYPE_HTML @@ -52,7 +55,8 @@ public void sortSteps() throws Exception { + " var t = [1, 5, 2, 1, 9];\n" + " t.sort(compare);\n" + "}\n" - + "\n" + + "\n" + + "\n" + ""; loadPageVerifyTitle2(html); From bd15167d98e1bdf6e428c70dc3e8544c3f82484a Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 9 Aug 2025 15:06:37 +0200 Subject: [PATCH 21/39] style fixes --- src/main/java/org/htmlunit/css/StyleAttributes.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/htmlunit/css/StyleAttributes.java b/src/main/java/org/htmlunit/css/StyleAttributes.java index 33eb5a2b58..b6c5c0d4be 100644 --- a/src/main/java/org/htmlunit/css/StyleAttributes.java +++ b/src/main/java/org/htmlunit/css/StyleAttributes.java @@ -1317,10 +1317,10 @@ public enum Definition { FONT_VARIANT_EAST_ASIAN_("font-variant-east-asian", "font-variant-east-asian", ffNormal()), /** The style property {@code fontVariantEmoji}. */ - FONT_VARIANT_EMOKJI("fontVariantEmoji", "font-variant-emoji", ffLatest("normal"), chromeAndEdgeNormal()), + FONT_VARIANT_EMOJI("fontVariantEmoji", "font-variant-emoji", ffLatest("normal"), chromeAndEdgeNormal()), - /** The style property {@code fontVariantEmoji}. */ - FONT_VARIANT_EMOKJI_("font-variant-emoji", "font-variant-emoji", ffLatest("normal")), + /** The style property {@code font-variant-emoji}. */ + FONT_VARIANT_EMOJI_("font-variant-emoji", "font-variant-emoji", ffLatest("normal")), /** The style property {@code fontVariantLigatures}. */ FONT_VARIANT_LIGATURES("fontVariantLigatures", "font-variant-ligatures", ffNormal(), chromeAndEdgeNormal()), @@ -2607,7 +2607,7 @@ public enum Definition { /** The style property {@code resize}. */ RESIZE("resize", "resize", ffNone(), chromeAndEdgeNone()), - /** The style property {@code resize}. */ + /** The style property {@code result}. */ RESULT("result", "result", chromeAndEdge("")), /** The style property {@code right}. */ From 09196f174d15466b2a2ec07fe17233de1b6db131 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 10 Aug 2025 10:28:19 +0200 Subject: [PATCH 22/39] fix old leftover for @HtmlUnitNYI --- .../junit/annotation/AnnotationUtils.java | 15 --------------- .../junit/annotation/AnnotationUtilsTest.java | 11 ----------- .../htmlunit/junit/annotation/HtmlUnitNYI.java | 5 ----- 3 files changed, 31 deletions(-) diff --git a/src/test/java/org/htmlunit/junit/annotation/AnnotationUtils.java b/src/test/java/org/htmlunit/junit/annotation/AnnotationUtils.java index a82f439c1a..b62f63d1e7 100644 --- a/src/test/java/org/htmlunit/junit/annotation/AnnotationUtils.java +++ b/src/test/java/org/htmlunit/junit/annotation/AnnotationUtils.java @@ -63,21 +63,6 @@ && isDefined(alerts.EDGE()), final HtmlUnitNYI nyiAlerts = method.getAnnotation(HtmlUnitNYI.class); if (nyiAlerts != null) { - if (isDefined(nyiAlerts.value())) { - if (isDefined(alerts.CHROME())) { - assertNotEquals("@HtmlUnitNYI", - method, null, alerts.CHROME(), nyiAlerts.value()); - } - else if (isDefined(alerts.DEFAULT())) { - assertNotEquals("@HtmlUnitNYI", - method, null, alerts.DEFAULT(), nyiAlerts.value()); - } - else if (isDefined(alerts.value())) { - assertNotEquals("@HtmlUnitNYI", - method, null, alerts.value(), nyiAlerts.value()); - } - } - if (isDefined(nyiAlerts.CHROME())) { if (isDefined(alerts.CHROME())) { assertNotEquals("@HtmlUnitNYI", diff --git a/src/test/java/org/htmlunit/junit/annotation/AnnotationUtilsTest.java b/src/test/java/org/htmlunit/junit/annotation/AnnotationUtilsTest.java index adeeb83458..209c181baa 100644 --- a/src/test/java/org/htmlunit/junit/annotation/AnnotationUtilsTest.java +++ b/src/test/java/org/htmlunit/junit/annotation/AnnotationUtilsTest.java @@ -85,17 +85,6 @@ public void redundantAlertFfEsr() throws Exception { "redundantAlertFfEsr"); } - /** - * @throws Exception if something goes wrong - */ - @Test - @Alerts("redundant") - @HtmlUnitNYI("redundant") - public void redundantHtmlUnitNYI() throws Exception { - testFail("Redundant @HtmlUnitNYI for DEFAULT in AnnotationUtilsTest.redundantHtmlUnitNYI()", - "redundantHtmlUnitNYI"); - } - /** * @throws Exception if something goes wrong */ diff --git a/src/test/java/org/htmlunit/junit/annotation/HtmlUnitNYI.java b/src/test/java/org/htmlunit/junit/annotation/HtmlUnitNYI.java index 5f9d8a17b9..d2747cd2b1 100644 --- a/src/test/java/org/htmlunit/junit/annotation/HtmlUnitNYI.java +++ b/src/test/java/org/htmlunit/junit/annotation/HtmlUnitNYI.java @@ -33,11 +33,6 @@ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface HtmlUnitNYI { - /** - * Alerts that is used for all browsers (if defined, the other values are ignored). - * @return the alerts - */ - String[] value() default { EMPTY_DEFAULT }; /** * Alerts for latest Edge. From 06c48d66ff28a9eaf81da3ac8541d0f342d785d9 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 10 Aug 2025 10:28:52 +0200 Subject: [PATCH 23/39] some tests are NYI --- .../java/org/htmlunit/html/HtmlPage6Test.java | 57 +++++++++++++++---- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/htmlunit/html/HtmlPage6Test.java b/src/test/java/org/htmlunit/html/HtmlPage6Test.java index 65dfb8ae1c..3a97157a3d 100644 --- a/src/test/java/org/htmlunit/html/HtmlPage6Test.java +++ b/src/test/java/org/htmlunit/html/HtmlPage6Test.java @@ -19,6 +19,7 @@ import org.htmlunit.WebDriverTestCase; import org.htmlunit.junit.annotation.Alerts; +import org.htmlunit.junit.annotation.HtmlUnitNYI; import org.htmlunit.util.MimeType; import org.htmlunit.util.NameValuePair; import org.junit.jupiter.api.Test; @@ -108,6 +109,10 @@ public void refresh_MetaTag_no_url_label() throws Exception { */ @Test @Alerts({"wrong", "2", "§§URL§§abcd=§§URL§§second/"}) + @HtmlUnitNYI(CHROME = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + EDGE = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + FF = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + FF_ESR = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}) public void refresh_MetaTag_wrong_url_label() throws Exception { testRefresh_MetaTag(""); testRefresh_MetaTag(""); @@ -170,6 +175,19 @@ public void refresh_MetaTag_Double() throws Exception { testRefresh_MetaTag(""); } + /** + * @throws Exception if an error occurs + */ + @Test + @Alerts({"wrong", "2", "§§URL§§2;URL=§§URL§§second/"}) + @HtmlUnitNYI(CHROME = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + EDGE = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + FF = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + FF_ESR = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}) + public void refresh_MetaTag_DoubleComma() throws Exception { + testRefresh_MetaTag(""); + } + private void testRefresh_MetaTag(final String metaTag) throws Exception { final String firstContent = DOCTYPE_HTML + "first§\n" @@ -185,16 +203,21 @@ private void testRefresh_MetaTag(final String metaTag) throws Exception { getMockWebConnection().setDefaultResponse(wrongContent); expandExpectedAlertsVariables(URL_FIRST); + final String[] expectedAlerts = getExpectedAlerts(); + for (int i = 0; i < expectedAlerts.length; i++) { + expectedAlerts[i] = expectedAlerts[i] + .replaceAll("§§URL1§§", URL_FIRST.toExternalForm().replace("http://", "http:/")); + } + final int count = getMockWebConnection().getRequestCount(); final WebDriver driver = loadPage2(firstContent); if (useRealBrowser()) { Thread.sleep(DEFAULT_WAIT_TIME.multipliedBy(3).toMillis()); } - verifyTitle2(DEFAULT_WAIT_TIME, driver, getExpectedAlerts()[0]); - assertEquals(Integer.parseInt(getExpectedAlerts()[1]), getMockWebConnection().getRequestCount() - count); - if (getExpectedAlerts().length > 2) { - final String exp = getExpectedAlerts()[2].replace("=http://", "=http:/"); - assertEquals(exp, getMockWebConnection().getLastWebRequest().getUrl().toString()); + verifyTitle2(DEFAULT_WAIT_TIME, driver, expectedAlerts[0]); + assertEquals(Integer.parseInt(expectedAlerts[1]), getMockWebConnection().getRequestCount() - count); + if (expectedAlerts.length > 2) { + assertEquals(expectedAlerts[2], getMockWebConnection().getLastWebRequest().getUrl().toString()); } } @@ -269,6 +292,10 @@ public void refresh_HttpResponseHeader_no_url_label() throws Exception { */ @Test @Alerts({"wrong", "2", "§§URL§§abcd=§§URL§§second/"}) + @HtmlUnitNYI(CHROME = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + EDGE = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + FF = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}, + FF_ESR = {"wrong", "2", "§§URL§§abcd=§§URL1§§second/"}) public void refresh_HttpResponseHeader_wrong_url_label() throws Exception { testRefresh_HttpResponseHeader("0;abcd=§§URL§§"); testRefresh_HttpResponseHeader("0; abcd=§§URL§§"); @@ -329,12 +356,15 @@ public void refresh_HttpResponseHeader_Double() throws Exception { testRefresh_HttpResponseHeader("1.2 ; URL=§§URL§§"); } - /** * @throws Exception if an error occurs */ @Test @Alerts({"wrong", "2", "§§URL§§2;URL=§§URL§§second/"}) + @HtmlUnitNYI(CHROME = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + EDGE = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + FF = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}, + FF_ESR = {"wrong", "2", "§§URL§§2;URL=§§URL1§§second/"}) public void refresh_HttpResponseHeader_DoubleComma() throws Exception { testRefresh_HttpResponseHeader("1,2;URL=§§URL§§"); } @@ -355,16 +385,21 @@ private void testRefresh_HttpResponseHeader(final String refreshHeader) throws E getMockWebConnection().setDefaultResponse(wrongContent); expandExpectedAlertsVariables(URL_FIRST); + final String[] expectedAlerts = getExpectedAlerts(); + for (int i = 0; i < expectedAlerts.length; i++) { + expectedAlerts[i] = expectedAlerts[i] + .replaceAll("§§URL1§§", URL_FIRST.toExternalForm().replace("http://", "http:/")); + } + final int count = getMockWebConnection().getRequestCount(); final WebDriver driver = loadPage2(URL_FIRST, StandardCharsets.ISO_8859_1); if (useRealBrowser()) { Thread.sleep(DEFAULT_WAIT_TIME.multipliedBy(3).toMillis()); } - verifyTitle2(DEFAULT_WAIT_TIME, driver, getExpectedAlerts()[0]); - assertEquals(Integer.parseInt(getExpectedAlerts()[1]), getMockWebConnection().getRequestCount() - count); - if (getExpectedAlerts().length > 2) { - final String exp = getExpectedAlerts()[2].replace("=http://", "=http:/"); - assertEquals(exp, getMockWebConnection().getLastWebRequest().getUrl().toString()); + verifyTitle2(DEFAULT_WAIT_TIME, driver, expectedAlerts[0]); + assertEquals(Integer.parseInt(expectedAlerts[1]), getMockWebConnection().getRequestCount() - count); + if (expectedAlerts.length > 2) { + assertEquals(expectedAlerts[2], getMockWebConnection().getLastWebRequest().getUrl().toString()); } } } From b7b7947972975888ce938f09bc37b47a0f041b28 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 10 Aug 2025 16:37:36 +0200 Subject: [PATCH 24/39] more refresh processing --- src/changes/changes.xml | 4 ++ src/main/java/org/htmlunit/WebClient.java | 2 +- .../java/org/htmlunit/WebClientOptions.java | 26 ++++++++++ src/main/java/org/htmlunit/html/HtmlPage.java | 49 ++++++++++++++----- .../java/org/htmlunit/WebClient4Test.java | 4 +- src/test/java/org/htmlunit/WebClientTest.java | 2 +- .../java/org/htmlunit/html/HtmlPageTest.java | 26 ++++++++++ 7 files changed, 96 insertions(+), 17 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index be07eb9c9f..f48426ce0c 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,10 @@ + + WebClient option pageRefreshLimit added. Refresh handling changed to support a clear limit. + The initial value is 72 to be backward compatible. + Dummy impl of PointerEvent#getPersistentDeviceId() returning always 0. diff --git a/src/main/java/org/htmlunit/WebClient.java b/src/main/java/org/htmlunit/WebClient.java index 0baa51a91b..f36c8aa52a 100644 --- a/src/main/java/org/htmlunit/WebClient.java +++ b/src/main/java/org/htmlunit/WebClient.java @@ -1677,7 +1677,7 @@ && getOptions().isRedirectEnabled()) { } if (allowedRedirects == 0) { - throw new FailingHttpStatusCodeException("Too much redirect for " + throw new FailingHttpStatusCodeException("Too many redirects for " + webResponse.getWebRequest().getUrl(), webResponse); } diff --git a/src/main/java/org/htmlunit/WebClientOptions.java b/src/main/java/org/htmlunit/WebClientOptions.java index 71d0df3aac..ddb337c951 100644 --- a/src/main/java/org/htmlunit/WebClientOptions.java +++ b/src/main/java/org/htmlunit/WebClientOptions.java @@ -52,6 +52,8 @@ public class WebClientOptions implements Serializable { private boolean throwExceptionOnScriptError_ = true; private boolean popupBlockerEnabled_; private boolean isRedirectEnabled_ = true; + // strange value 72 used to be backward compatible with 4.14.0 + private int pageRefreshLimit_ = 72; private File tempFileDirectory_; private transient KeyStore sslClientCertificateStore_; @@ -140,6 +142,19 @@ public void setRedirectEnabled(final boolean enabled) { isRedirectEnabled_ = enabled; } + /** + * Sets the limit to be used when a page refreshes itself by using a + * http refresh header or meta tag. Set this to -1 to allow endless refresh. + *

+ * Please have in mind, the {@link NiceRefreshHandler} and the {@link ImmediateRefreshHandler} + * have also some loop protection, that triggers first. + * + * @param pageRefreshLimit the number of refresh loops before throwing an exception + */ + public void setRedirectEnabled(final int pageRefreshLimit) { + pageRefreshLimit_ = pageRefreshLimit; + } + /** * Returns the directory to be used for storing the response content in * a temporary file see {@link #getMaxInMemory()}. @@ -180,6 +195,17 @@ public boolean isRedirectEnabled() { return isRedirectEnabled_; } + /** + * Returns the limit to be used when a page refreshes itself by using a + * http refresh header or meta tag. Negative values are interpreted as + * endless refresh support. + * + * @return pageRefreshLimit the number of refresh loops before throwing an exception + */ + public int getPageRefreshLimit() { + return pageRefreshLimit_; + } + /** * Sets the SSL client certificate {@link KeyStore} to use. *

diff --git a/src/main/java/org/htmlunit/html/HtmlPage.java b/src/main/java/org/htmlunit/html/HtmlPage.java index 9bf3f650b8..ac4298613f 100644 --- a/src/main/java/org/htmlunit/html/HtmlPage.java +++ b/src/main/java/org/htmlunit/html/HtmlPage.java @@ -43,6 +43,7 @@ import java.util.concurrent.ConcurrentHashMap; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.Cache; @@ -938,7 +939,7 @@ public ScriptResult executeJavaScript(String sourceCode, final String sourceName return new ScriptResult(JavaScriptEngine.UNDEFINED); } - if (StringUtils.startsWithIgnoreCase(sourceCode, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { + if (Strings.CI.startsWith(sourceCode, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { sourceCode = sourceCode.substring(JavaScriptURLConnection.JAVASCRIPT_PREFIX.length()).trim(); if (sourceCode.startsWith("return ")) { sourceCode = sourceCode.substring("return ".length()); @@ -1425,23 +1426,45 @@ private void executeRefreshIfNeeded() throws IOException { } } - final int timeRounded = (int) time; - checkRecursion(); - getWebClient().getRefreshHandler().handleRefresh(this, url, timeRounded); + processRefresh(url, time); } - private void checkRecursion() { - final StackTraceElement[] elements = new Exception().getStackTrace(); - if (elements.length > 500) { - for (int i = 0; i < 500; i++) { - if (!elements[i].getClassName().startsWith("org.htmlunit.")) { - return; - } - } + // this is different from what is done in org.htmlunit.WebClient.loadWebResponseFromWebConnection(WebRequest, int) + // because there we are directly replacing the response before loading the response into the window + // here we are replacing the page in the window (maybe after some time) + private void processRefresh(final URL url, final double time) throws IOException { + final WebClient webClient = getWebClient(); + + final int refreshLimit = webClient.getOptions().getPageRefreshLimit(); + if (refreshLimit == 0) { final WebResponse webResponse = getWebResponse(); - throw new FailingHttpStatusCodeException("Too much redirect for " + throw new FailingHttpStatusCodeException("Too many redirects for " + webResponse.getWebRequest().getUrl(), webResponse); } + + if (refreshLimit >= 0) { + final StackTraceElement[] elements = new Exception().getStackTrace(); + int count = 0; + final int elementCountLimit = refreshLimit > 50 ? 400 : refreshLimit > 10 ? 80 : 5; + final int elementCount = elements.length; + + if (elementCount > elementCountLimit) { + for (int i = 0; i < elementCount; i++) { + if ("processRefresh".equals(elements[i].getMethodName()) + && "org.htmlunit.html.HtmlPage".equals(elements[i].getClassName())) { + count++; + if (count >= refreshLimit) { + final WebResponse webResponse = getWebResponse(); + throw new FailingHttpStatusCodeException( + "Too many redirects (>= " + count + ") for " + + webResponse.getWebRequest().getUrl(), webResponse); + } + } + } + } + } + + webClient.getRefreshHandler().handleRefresh(this, url, (int) time); } /** diff --git a/src/test/java/org/htmlunit/WebClient4Test.java b/src/test/java/org/htmlunit/WebClient4Test.java index 1e8ac2b81c..2023767e34 100644 --- a/src/test/java/org/htmlunit/WebClient4Test.java +++ b/src/test/java/org/htmlunit/WebClient4Test.java @@ -95,7 +95,7 @@ public void redirectInfinite303And307() throws Exception { client.getPage("http://localhost:" + PORT + RedirectServlet307.URL); } catch (final Exception e) { - assertTrue(e.getMessage(), e.getMessage().contains("Too much redirect")); + assertTrue(e.getMessage(), e.getMessage().contains("Too many redirects")); } } @@ -433,7 +433,7 @@ public void redirectInfiniteMeta() throws Exception { client.getPage(URL_FIRST + "test1"); } catch (final Exception e) { - assertTrue(e.getMessage(), e.getMessage().contains("Too much redirect")); + assertTrue(e.getMessage(), e.getMessage().contains("Too many redirects")); } } diff --git a/src/test/java/org/htmlunit/WebClientTest.java b/src/test/java/org/htmlunit/WebClientTest.java index 1dc3eff649..08c2ead38b 100644 --- a/src/test/java/org/htmlunit/WebClientTest.java +++ b/src/test/java/org/htmlunit/WebClientTest.java @@ -465,7 +465,7 @@ public void redirectionSameURL() throws Exception { getPageWithRedirectionsSameURL(30); } catch (final Exception e) { - assertTrue(e.getMessage(), e.getMessage().contains("Too much redirect")); + assertTrue(e.getMessage(), e.getMessage().contains("Too many redirects")); } } diff --git a/src/test/java/org/htmlunit/html/HtmlPageTest.java b/src/test/java/org/htmlunit/html/HtmlPageTest.java index bf72def81e..c6df12e863 100644 --- a/src/test/java/org/htmlunit/html/HtmlPageTest.java +++ b/src/test/java/org/htmlunit/html/HtmlPageTest.java @@ -36,6 +36,7 @@ import org.apache.commons.lang3.SerializationUtils; import org.htmlunit.CollectingAlertHandler; import org.htmlunit.ElementNotFoundException; +import org.htmlunit.FailingHttpStatusCodeException; import org.htmlunit.HttpMethod; import org.htmlunit.ImmediateRefreshHandler; import org.htmlunit.IncorrectnessListener; @@ -44,6 +45,7 @@ import org.htmlunit.Page; import org.htmlunit.SimpleWebTestCase; import org.htmlunit.StringWebResponse; +import org.htmlunit.WaitingRefreshHandler; import org.htmlunit.WebClient; import org.htmlunit.WebRequest; import org.htmlunit.WebResponse; @@ -772,6 +774,30 @@ public void refresh_ImmediateRefresh_AvoidOOME() throws Exception { Thread.sleep(1000); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Too many redirects (>= 72) for §§URL§§") + public void refresh_EndlessLoop() throws Exception { + final String firstContent = DOCTYPE_HTML + + "first\n" + + "\n" + + ""; + + expandExpectedAlertsVariables(URL_FIRST); + + final WebClient client = getWebClient(); + client.setRefreshHandler(new WaitingRefreshHandler()); + try { + loadPage(firstContent); + Assertions.fail("should have thrown"); + } + catch (final FailingHttpStatusCodeException e) { + assertEquals(getExpectedAlerts()[0], e.getMessage()); + } + } + /** * Test auto-refresh from a meta tag inside noscript. * @throws Exception if the test fails From a052757ed6600a33ab73cdbb7fdd95493b785ec0 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 10 Aug 2025 19:51:14 +0200 Subject: [PATCH 25/39] fix commons lang deprecated --- src/main/java/org/htmlunit/WebResponseData.java | 6 +++--- src/main/java/org/htmlunit/css/CssStyleSheet.java | 7 ++++--- src/main/java/org/htmlunit/html/HtmlAnchor.java | 3 ++- src/main/java/org/htmlunit/html/HtmlArea.java | 3 ++- src/main/java/org/htmlunit/html/HtmlForm.java | 5 +++-- src/main/java/org/htmlunit/html/ScriptElementSupport.java | 3 ++- src/main/java/org/htmlunit/javascript/host/Location.java | 3 ++- .../org/htmlunit/javascript/host/css/CSSPageRule.java | 4 ++-- src/main/java/org/htmlunit/util/HeaderUtils.java | 8 ++++---- src/main/java/org/htmlunit/util/UrlUtils.java | 2 +- 10 files changed, 25 insertions(+), 19 deletions(-) diff --git a/src/main/java/org/htmlunit/WebResponseData.java b/src/main/java/org/htmlunit/WebResponseData.java index 6f55e37a4a..74196109ea 100644 --- a/src/main/java/org/htmlunit/WebResponseData.java +++ b/src/main/java/org/htmlunit/WebResponseData.java @@ -29,7 +29,7 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.io.input.BOMInputStream; import org.apache.commons.lang3.ArrayUtils; -import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.brotli.dec.BrotliInputStream; @@ -101,7 +101,7 @@ private InputStream getStream(final ByteOrderMark... bomHeaders) throws IOExcept final List headers = getResponseHeaders(); final String encoding = getHeader(headers, "content-encoding"); if (encoding != null) { - boolean isGzip = StringUtils.contains(encoding, "gzip") && !"no-gzip".equals(encoding); + boolean isGzip = Strings.CI.contains(encoding, "gzip") && !"no-gzip".equals(encoding); if ("gzip-only-text/html".equals(encoding)) { isGzip = MimeType.TEXT_HTML.equals(getHeader(headers, "content-type")); } @@ -148,7 +148,7 @@ private InputStream getStream(final ByteOrderMark... bomHeaders) throws IOExcept return stream; } - if (StringUtils.contains(encoding, "deflate")) { + if (Strings.CI.contains(encoding, "deflate")) { boolean zlibHeader = false; if (stream.markSupported()) { // should be always the case as the content is in a byte[] or in a file stream.mark(2); diff --git a/src/main/java/org/htmlunit/css/CssStyleSheet.java b/src/main/java/org/htmlunit/css/CssStyleSheet.java index 1bf974a747..fd3f7f797e 100644 --- a/src/main/java/org/htmlunit/css/CssStyleSheet.java +++ b/src/main/java/org/htmlunit/css/CssStyleSheet.java @@ -39,6 +39,7 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.lang3.math.NumberUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -563,7 +564,7 @@ static boolean selects(final BrowserVersion browserVersion, final String prefixValue = prefixAttributeCondition.getValue(); if (prefixAttributeCondition.isCaseInSensitive()) { return !org.htmlunit.util.StringUtils.isEmptyString(prefixValue) - && StringUtils.startsWithIgnoreCase( + && Strings.CI.startsWith( element.getAttribute(prefixAttributeCondition.getLocalName()), prefixValue); } return !org.htmlunit.util.StringUtils.isEmptyString(prefixValue) @@ -574,7 +575,7 @@ static boolean selects(final BrowserVersion browserVersion, final String suffixValue = suffixAttributeCondition.getValue(); if (suffixAttributeCondition.isCaseInSensitive()) { return !org.htmlunit.util.StringUtils.isEmptyString(suffixValue) - && StringUtils.endsWithIgnoreCase( + && Strings.CI.endsWith( element.getAttribute(suffixAttributeCondition.getLocalName()), suffixValue); } return !org.htmlunit.util.StringUtils.isEmptyString(suffixValue) @@ -585,7 +586,7 @@ static boolean selects(final BrowserVersion browserVersion, final String substringValue = substringAttributeCondition.getValue(); if (substringAttributeCondition.isCaseInSensitive()) { return !org.htmlunit.util.StringUtils.isEmptyString(substringValue) - && StringUtils.containsIgnoreCase( + && Strings.CI.contains( element.getAttribute(substringAttributeCondition.getLocalName()), substringValue); } return !org.htmlunit.util.StringUtils.isEmptyString(substringValue) diff --git a/src/main/java/org/htmlunit/html/HtmlAnchor.java b/src/main/java/org/htmlunit/html/HtmlAnchor.java index ba42f1b985..e30859896e 100644 --- a/src/main/java/org/htmlunit/html/HtmlAnchor.java +++ b/src/main/java/org/htmlunit/html/HtmlAnchor.java @@ -24,6 +24,7 @@ import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.BrowserVersion; @@ -116,7 +117,7 @@ protected void doClickStateUpdate(final boolean shiftKey, final boolean ctrlKey, } final String downloadAttribute = getDownloadAttribute(); HtmlPage page = (HtmlPage) getPage(); - if (StringUtils.startsWithIgnoreCase(href, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { + if (Strings.CI.startsWith(href, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { final StringBuilder builder = new StringBuilder(href.length()); builder.append(JavaScriptURLConnection.JAVASCRIPT_PREFIX); for (int i = JavaScriptURLConnection.JAVASCRIPT_PREFIX.length(); i < href.length(); i++) { diff --git a/src/main/java/org/htmlunit/html/HtmlArea.java b/src/main/java/org/htmlunit/html/HtmlArea.java index 129b22d02d..ee286a0046 100644 --- a/src/main/java/org/htmlunit/html/HtmlArea.java +++ b/src/main/java/org/htmlunit/html/HtmlArea.java @@ -23,6 +23,7 @@ import java.util.Map; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.SgmlPage; @@ -80,7 +81,7 @@ protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlK final String href = getHrefAttribute().trim(); if (!href.isEmpty()) { final HtmlPage page = (HtmlPage) getPage(); - if (StringUtils.startsWithIgnoreCase(href, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { + if (Strings.CI.startsWith(href, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { page.executeJavaScript( href, "javascript url", getStartLineNumber()); return false; diff --git a/src/main/java/org/htmlunit/html/HtmlForm.java b/src/main/java/org/htmlunit/html/HtmlForm.java index dd7797388f..85b6151688 100644 --- a/src/main/java/org/htmlunit/html/HtmlForm.java +++ b/src/main/java/org/htmlunit/html/HtmlForm.java @@ -34,6 +34,7 @@ import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.BrowserVersion; @@ -158,13 +159,13 @@ && getAttributeDirect(ATTRIBUTE_NOVALIDATE) != ATTRIBUTE_NOT_DEFINED) { } final String action = getActionAttribute().trim(); - if (StringUtils.startsWithIgnoreCase(action, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { + if (Strings.CI.startsWith(action, JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { htmlPage.executeJavaScript(action, "Form action", getStartLineNumber()); return; } } else { - if (StringUtils.startsWithIgnoreCase(getActionAttribute(), JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { + if (Strings.CI.startsWith(getActionAttribute(), JavaScriptURLConnection.JAVASCRIPT_PREFIX)) { // The action is JavaScript but JavaScript isn't enabled. return; } diff --git a/src/main/java/org/htmlunit/html/ScriptElementSupport.java b/src/main/java/org/htmlunit/html/ScriptElementSupport.java index 796c53d1a9..801fb7f55e 100644 --- a/src/main/java/org/htmlunit/html/ScriptElementSupport.java +++ b/src/main/java/org/htmlunit/html/ScriptElementSupport.java @@ -19,6 +19,7 @@ import java.nio.charset.Charset; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.FailingHttpStatusCodeException; @@ -297,7 +298,7 @@ public static boolean isJavaScript(String typeAttribute, final String languageAt } if (StringUtils.isNotEmpty(languageAttribute)) { - return StringUtils.startsWithIgnoreCase(languageAttribute, "javascript"); + return Strings.CI.startsWith(languageAttribute, "javascript"); } return true; } diff --git a/src/main/java/org/htmlunit/javascript/host/Location.java b/src/main/java/org/htmlunit/javascript/host/Location.java index 281d547e4b..d2e2d6c8b8 100644 --- a/src/main/java/org/htmlunit/javascript/host/Location.java +++ b/src/main/java/org/htmlunit/javascript/host/Location.java @@ -23,6 +23,7 @@ import java.net.URL; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.htmlunit.BrowserVersion; @@ -337,7 +338,7 @@ public String getSearch() { return ""; } - if (StringUtils.startsWithIgnoreCase(url.getProtocol(), UrlUtils.ABOUT) + if (Strings.CI.startsWith(url.getProtocol(), UrlUtils.ABOUT) && window_.getWebWindow().getWebClient().getBrowserVersion() .hasFeature(JS_LOCATION_IGNORE_QUERY_FOR_ABOUT_PROTOCOL)) { return ""; diff --git a/src/main/java/org/htmlunit/javascript/host/css/CSSPageRule.java b/src/main/java/org/htmlunit/javascript/host/css/CSSPageRule.java index 4f6de68777..23822818c4 100644 --- a/src/main/java/org/htmlunit/javascript/host/css/CSSPageRule.java +++ b/src/main/java/org/htmlunit/javascript/host/css/CSSPageRule.java @@ -18,7 +18,7 @@ import java.util.Locale; -import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.htmlunit.BrowserVersion; import org.htmlunit.css.WrappedCssStyleDeclaration; import org.htmlunit.cssparser.dom.CSSPageRuleImpl; @@ -118,7 +118,7 @@ public String getCssText() { String cssText = super.getCssText(); final BrowserVersion browserVersion = getBrowserVersion(); if (browserVersion.hasFeature(CSS_CSSTEXT_FF_STYLE)) { - cssText = StringUtils.replace(cssText, "@page {", "@page {"); + cssText = Strings.CS.replace(cssText, "@page {", "@page {"); } return cssText; diff --git a/src/main/java/org/htmlunit/util/HeaderUtils.java b/src/main/java/org/htmlunit/util/HeaderUtils.java index c24e8f0a59..7f1a410370 100644 --- a/src/main/java/org/htmlunit/util/HeaderUtils.java +++ b/src/main/java/org/htmlunit/util/HeaderUtils.java @@ -17,7 +17,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Strings; import org.htmlunit.HttpHeader; import org.htmlunit.WebResponse; @@ -110,10 +110,10 @@ public static boolean containsMaxAge(final WebResponse response) { */ public static boolean containsMaxAgeOrSMaxage(final WebResponse response) { final String cacheControl = response.getResponseHeaderValue(HttpHeader.CACHE_CONTROL); - if (StringUtils.contains(cacheControl, CACHE_CONTROL_MAX_AGE)) { + if (Strings.CI.contains(cacheControl, CACHE_CONTROL_MAX_AGE)) { return true; } - return StringUtils.contains(cacheControl, CACHE_CONTROL_S_MAXAGE); + return Strings.CI.contains(cacheControl, CACHE_CONTROL_S_MAXAGE); } /** @@ -153,6 +153,6 @@ private static long directiveValue(final WebResponse response, final Pattern pat private static boolean containsCacheControlValue(final WebResponse response, final String value) { final String cacheControl = response.getResponseHeaderValue(HttpHeader.CACHE_CONTROL); - return StringUtils.contains(cacheControl, value); + return Strings.CI.contains(cacheControl, value); } } diff --git a/src/main/java/org/htmlunit/util/UrlUtils.java b/src/main/java/org/htmlunit/util/UrlUtils.java index ae2b4f6ab1..ae43d1c680 100644 --- a/src/main/java/org/htmlunit/util/UrlUtils.java +++ b/src/main/java/org/htmlunit/util/UrlUtils.java @@ -247,7 +247,7 @@ public static URL toUrlUnsafe(final String url) throws MalformedURLException { } if (ABOUT.equals(protocol)) { - if (org.apache.commons.lang3.StringUtils.equalsIgnoreCase(ABOUT_BLANK, url)) { + if (org.apache.commons.lang3.Strings.CI.equals(ABOUT_BLANK, url)) { return URL_ABOUT_BLANK; } return new URL(null, url, ABOUT_HANDLER); From c191aa6c69c4714dac14ff217b342ebf8271b070 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Wed, 13 Aug 2025 06:57:48 +0200 Subject: [PATCH 26/39] add smoke test for the optional chaining operator --- src/changes/changes.xml | 3 + .../OptionalChainingOperatorTest.java | 66 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 src/test/java/org/htmlunit/javascript/OptionalChainingOperatorTest.java diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f48426ce0c..34dd8ea55c 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,9 @@ + + core-js: Fix a regression regarding optional chaining operators. + WebClient option pageRefreshLimit added. Refresh handling changed to support a clear limit. The initial value is 72 to be backward compatible. diff --git a/src/test/java/org/htmlunit/javascript/OptionalChainingOperatorTest.java b/src/test/java/org/htmlunit/javascript/OptionalChainingOperatorTest.java new file mode 100644 index 0000000000..52f2b22fff --- /dev/null +++ b/src/test/java/org/htmlunit/javascript/OptionalChainingOperatorTest.java @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2002-2025 Gargoyle Software Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.htmlunit.javascript; + +import org.htmlunit.WebDriverTestCase; +import org.htmlunit.junit.annotation.Alerts; +import org.junit.jupiter.api.Test; + +/** + * Tests for the optional chaining operator (?.). + * + * @author Ronald Brill + */ +public class OptionalChainingOperatorTest extends WebDriverTestCase { + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"undefined", "two"}) + public void basic() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("true") + public void parse() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } +} From a4cf1043f1e0152ec7bd098f4598a128899007a2 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Thu, 14 Aug 2025 17:16:56 +0200 Subject: [PATCH 27/39] jetty updated to 9.4.58.v20250814 --- pom.xml | 2 +- src/changes/changes.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b1737a6baa..ba074239c9 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ 5.13.4 1.13.4 2.3.0 - 9.4.57.v20241219 + 9.4.58.v20250814 4.0.66 2.25.1 2.0.17 diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 34dd8ea55c..64962bfa62 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,9 @@ + + websocket-client: jetty updated to 9.4.58.v20250814. + core-js: Fix a regression regarding optional chaining operators. From 0bf350784985b5bbdf569993f24bd2aa645ffad0 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 11:22:36 +0200 Subject: [PATCH 28/39] mor js tests --- .../htmlunit/javascript/FunctionsTest.java | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/test/java/org/htmlunit/javascript/FunctionsTest.java b/src/test/java/org/htmlunit/javascript/FunctionsTest.java index f39664cd05..29c037c479 100644 --- a/src/test/java/org/htmlunit/javascript/FunctionsTest.java +++ b/src/test/java/org/htmlunit/javascript/FunctionsTest.java @@ -175,4 +175,110 @@ public void conditionallyCreatedFunctionStrict() throws Exception { loadPageVerifyTitle2(html); } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Hello!") + public void applyThisFromBoundArgs() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Hello!") + public void applyToApplyCallsCorrectFunction() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("b") + public void applyToApplySetsCorrectFunctionThis() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Hello!") + public void applyToCallCallsCorrectFunction() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("b") + public void applyToCallSetsCorrectFunctionThis() throws Exception { + final String html = DOCTYPE_HTML + + "\n" + + "\n" + + "\n" + + ""; + + loadPageVerifyTitle2(html); + } } From a0d51867e16ea4f770c4cc721b3126269b8c617d Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 11:22:59 +0200 Subject: [PATCH 29/39] the release train has started --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index ba074239c9..d3a558fdf5 100644 --- a/pom.xml +++ b/pom.xml @@ -27,12 +27,12 @@ 8 8 - 4.14.0 - 4.14.0 + 4.15.0 + 4.16.0 4.15.0-SNAPSHOT 4.15.0-SNAPSHOT - 4.14.0 - 4.14.0 + 4.15.0 + 4.15.0 4.5.14 3.18.0 From 96ef32a5c0b40f25ddcd19245e852f187c82fdfe Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 11:45:18 +0200 Subject: [PATCH 30/39] into the future :-) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d3a558fdf5..bc002c7880 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ 8 4.15.0 - 4.16.0 + 4.15.0 4.15.0-SNAPSHOT 4.15.0-SNAPSHOT 4.15.0 From c03a8ddc2d417865c1bb82f9e47206773244df28 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 16:21:33 +0200 Subject: [PATCH 31/39] core-js 4.15.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bc002c7880..36c0270260 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ 4.15.0 4.15.0 - 4.15.0-SNAPSHOT + 4.15.0 4.15.0-SNAPSHOT 4.15.0 4.15.0 From 72b3b06f47329f6a3b3651e13e3f2740f42c04db Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 18:15:41 +0200 Subject: [PATCH 32/39] use a more efficient way of iteration --- .../html/serializer/HtmlSerializerInnerOuterText.java | 6 +++--- .../html/serializer/HtmlSerializerNormalizedText.java | 5 ++++- .../htmlunit/html/serializer/HtmlSerializerVisibleText.java | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerInnerOuterText.java b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerInnerOuterText.java index 3e919e6a3d..455b1656f1 100644 --- a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerInnerOuterText.java +++ b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerInnerOuterText.java @@ -387,9 +387,9 @@ public void append(final String content, final Mode mode) { } length--; - int i = -1; - for (char c : content.toCharArray()) { - i++; + final int contentLenght = content.length(); + for (int i = 0; i < contentLenght; i++) { + char c = content.charAt(i); // handle \r if (c == '\r') { diff --git a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java index 9be60feb6d..7b886cd355 100644 --- a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java +++ b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java @@ -638,7 +638,10 @@ public void append(final String content, final Mode mode) { } boolean crFound = false; - for (final char c : text.toCharArray()) { + final int textLenght = text.length(); + for (int i = 0; i < textLenght; i++) { + final char c = text.charAt(i); + if (mode == Mode.NORMALIZE) { if (isSpace(c)) { switch (state_) { diff --git a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerVisibleText.java b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerVisibleText.java index 435a3d2220..cc3b345eab 100644 --- a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerVisibleText.java +++ b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerVisibleText.java @@ -812,9 +812,9 @@ public void append(final String content, final Mode mode) { } length--; - int i = -1; - for (char c : content.toCharArray()) { - i++; + final int contentLenght = content.length(); + for (int i = 0; i < contentLenght; i++) { + char c = content.charAt(i); // handle \r if (c == '\r') { From 2b21d08013513bb8d536d6c8a9bcc1e0f4c3b0c5 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 18:52:00 +0200 Subject: [PATCH 33/39] Improve WebClientOptions javadoc. --- src/changes/changes.xml | 22 ++- .../java/org/htmlunit/WebClientOptions.java | 147 ++++++++++++------ 2 files changed, 116 insertions(+), 53 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 64962bfa62..a537b7796e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -7,18 +7,34 @@ - + + + Improve WebClientOptions javadoc. + + + core-js: Fix two more regession from the Interpreter refactoring. Various combinations + of apply/bind/call now working again. + websocket-client: jetty updated to 9.4.58.v20250814. - + core-js: Fix a regression regarding optional chaining operators. + + neko: Always call detectEncoding() to skip bom in case we got an input stream with bom and an encoding. + + + neko: increase PlaybackInputStream buffer size + + + neko: addNekoSAXParser Factory added + WebClient option pageRefreshLimit added. Refresh handling changed to support a clear limit. The initial value is 72 to be backward compatible. - + Dummy impl of PointerEvent#getPersistentDeviceId() returning always 0. diff --git a/src/main/java/org/htmlunit/WebClientOptions.java b/src/main/java/org/htmlunit/WebClientOptions.java index ddb337c951..7de2c8a837 100644 --- a/src/main/java/org/htmlunit/WebClientOptions.java +++ b/src/main/java/org/htmlunit/WebClientOptions.java @@ -30,7 +30,17 @@ import org.apache.commons.io.FileUtils; /** - * Represents options of a {@link WebClient}. + * Configuration options for {@link WebClient} instances. + * This class provides fine-grained control over client behavior including: + *

    + *
  • JavaScript and CSS processing
  • + *
  • SSL/TLS configuration and certificates
  • + *
  • HTTP timeouts and proxy settings
  • + *
  • Memory management and temporary file handling
  • + *
  • WebSocket and geolocation support
  • + *
+ * + *

All options have sensible defaults and can be modified independently.

* * @author Ahmed Ashour * @author Marc Guillemot @@ -143,15 +153,16 @@ public void setRedirectEnabled(final boolean enabled) { } /** - * Sets the limit to be used when a page refreshes itself by using a - * http refresh header or meta tag. Set this to -1 to allow endless refresh. - *

- * Please have in mind, the {@link NiceRefreshHandler} and the {@link ImmediateRefreshHandler} - * have also some loop protection, that triggers first. + * Sets the redirect limit for page refresh operations using HTTP refresh headers or meta tags. + * This prevents infinite refresh loops by limiting the number of consecutive refreshes allowed. + * Set to -1 to allow unlimited refreshes. * - * @param pageRefreshLimit the number of refresh loops before throwing an exception + *

Note: The {@link NiceRefreshHandler} and {@link ImmediateRefreshHandler} + * have additional loop protection that may trigger before this limit.

+ * + * @param pageRefreshLimit the maximum number of refresh loops, or -1 for unlimited */ - public void setRedirectEnabled(final int pageRefreshLimit) { + public void setPageRefreshLimit(final int pageRefreshLimit) { pageRefreshLimit_ = pageRefreshLimit; } @@ -165,12 +176,13 @@ public File getTempFileDirectory() { } /** - * Sets the directory to be used for storing the response content in - * a temporary file see {@link #setMaxInMemory(int)}. - * If the given directory does not exist, this creates it. + * Sets the directory to be used for storing response content in temporary files. + * See {@link #setMaxInMemory(int)} for when temporary files are created. + * If the directory doesn't exist, it will be created automatically. * - * @param tempFileDirectory the directory to be used or null to use the system default - * @throws IOException in case of error + * @param tempFileDirectory the directory to use, or {@code null} for system default + * @throws IOException if directory creation fails + * @throws IllegalArgumentException if the path points to an existing file */ public void setTempFileDirectory(final File tempFileDirectory) throws IOException { if (tempFileDirectory != null) { @@ -316,6 +328,8 @@ public String[] getSSLClientProtocols() { * @param sslClientProtocols the protocol versions * @see javax.net.ssl.SSLSocket#setEnabledProtocols(String[]) * @see #getSSLClientProtocols() + * @see #setSSLClientCipherSuites(String...) + * @see #setUseInsecureSSL(boolean) */ public void setSSLClientProtocols(final String... sslClientProtocols) { sslClientProtocols_ = sslClientProtocols; @@ -516,7 +530,8 @@ public void setProxyConfig(final ProxyConfig proxyConfig) { * Gets the timeout value for the {@link WebConnection}. * The default timeout is 90 seconds. * @return the timeout value in milliseconds - * @see WebClientOptions#setTimeout(int) + * @see #setTimeout(int) + * @see #setConnectionTimeToLive(long) */ public int getTimeout() { return timeout_; @@ -544,11 +559,11 @@ public long getConnectionTimeToLive() { } /** - * Sets the connTimeToLive of the HttpClient connection pool. - * Use this if you are working with web pages behind a DNS based load balancer. - * Set to -1 (default) for disabling this timeout. + * Sets the connection time-to-live for the HttpClient connection pool. + * This is useful when working with web pages behind DNS-based load balancers + * where IP addresses may change frequently. * - * @param connectionTimeToLive the value of the timeout in milliseconds + * @param connectionTimeToLive the timeout in milliseconds, or -1 to disable (default) */ public void setConnectionTimeToLive(final long connectionTimeToLive) { connectionTimeToLive_ = connectionTimeToLive; @@ -618,9 +633,13 @@ private static KeyStore getKeyStore(final InputStream inputStream, final String } /** - * Returns the maximum bytes to have in memory, after which the content is saved to a temporary file. - * Default is 500 * 1024. - * @return the maximum bytes in memory + * Returns the maximum bytes stored in memory before content is saved to temporary files. + * When response content exceeds this limit, it will be written to a temporary file + * in the directory specified by {@link #getTempFileDirectory()}. + * + * @return the maximum bytes in memory (default: 500 * 1024) + * @see #setMaxInMemory(int) + * @see #setTempFileDirectory(File) */ public int getMaxInMemory() { return maxInMemory_; @@ -691,12 +710,10 @@ public InetAddress getLocalAddress() { } /** - * Sets the local address to be used for request execution. - *

- * On machines with multiple network interfaces, this parameter can be used to select the network interface - * from which the connection originates. + * Sets the local network interface address for outgoing HTTP requests. + * Useful on multi-homed machines to control which network interface is used. * - * @param localAddress the local address + * @param localAddress the local IP address to bind to, or {@code null} for automatic selection */ public void setLocalAddress(final InetAddress localAddress) { localAddress_ = localAddress; @@ -720,8 +737,9 @@ public boolean isDownloadImages() { /** * Sets the screen width. + * This value is used by JavaScript's screen.width property. * - * @param screenWidth the screen width + * @param screenWidth the screen width in pixels (must be positive) */ public void setScreenWidth(final int screenWidth) { screenWidth_ = screenWidth; @@ -755,16 +773,23 @@ public int getScreenHeight() { } /** - * @return the Neko Html parser reader buffer size + * Returns the Neko HTML parser reader buffer size. + * This controls the internal buffer size used by the NekoHTML parser + * for reading HTML content. Larger buffers can improve performance + * for large documents but consume more memory. + * + * @return the buffer size in bytes, or -1 for parser default */ public int getNekoReaderBufferSize() { return nekoReaderBufferSize_; } /** - * Sets the Neko Html parser reader buffer size. + * Sets the Neko HTML parser reader buffer size. + * A larger buffer size can improve parsing performance for large HTML documents + * but will consume more memory. Set to -1 to use the parser's default buffer size. * - * @param nekoReaderBufferSize the new value + * @param nekoReaderBufferSize the buffer size in bytes, or -1 for default */ public void setNekoReaderBufferSize(final int nekoReaderBufferSize) { nekoReaderBufferSize_ = nekoReaderBufferSize; @@ -789,64 +814,82 @@ public boolean isWebSocketEnabled() { } /** - * @return the WebSocket maxTextMessageSize + * Returns the maximum size in bytes for WebSocket text messages. + * Set to -1 to use the default. + * + * @return the maximum text message size in bytes, or -1 for default */ public int getWebSocketMaxTextMessageSize() { return webSocketMaxTextMessageSize_; } /** - * Sets the WebSocket maxTextMessageSize. + * Sets the maximum size in bytes for WebSocket text messages. + * This limit applies to individual text frames received by the WebSocket. * - * @param webSocketMaxTextMessageSize the new value + * @param webSocketMaxTextMessageSize the maximum size in bytes, or -1 for default */ public void setWebSocketMaxTextMessageSize(final int webSocketMaxTextMessageSize) { webSocketMaxTextMessageSize_ = webSocketMaxTextMessageSize; } /** - * @return the WebSocket maxTextMessageBufferSize + * Returns the maximum buffer size in bytes for assembling WebSocket text messages. + * Set to -1 to use the default. + * + * @return the maximum text message buffer size in bytes, or -1 for default */ public int getWebSocketMaxTextMessageBufferSize() { return webSocketMaxTextMessageBufferSize_; } /** - * Sets the WebSocket maxTextMessageBufferSize. + * Sets the maximum buffer size in bytes for assembling WebSocket text messages. + * This controls the memory used when reconstructing fragmented text messages. + * The buffer size should typically be larger than the maximum message size to + * accommodate message assembly overhead. * - * @param webSocketMaxTextMessageBufferSize the new value + * @param webSocketMaxTextMessageBufferSize the maximum buffer size in bytes, or -1 for default */ public void setWebSocketMaxTextMessageBufferSize(final int webSocketMaxTextMessageBufferSize) { webSocketMaxTextMessageBufferSize_ = webSocketMaxTextMessageBufferSize; } /** - * @return the WebSocket maxTextMessageSize + * Returns the maximum size in bytes for WebSocket binary messages. + * Set to -1 to use the default. + * + * @return the maximum binary message size in bytes, or -1 for default */ public int getWebSocketMaxBinaryMessageSize() { return webSocketMaxBinaryMessageSize_; } /** - * Sets the WebSocket maxBinaryMessageSize. + * Sets the maximum size in bytes for WebSocket binary messages. + * This limit applies to individual binary frames received by the WebSocket. * - * @param webSocketMaxBinaryMessageSize the new value + * @param webSocketMaxBinaryMessageSize the maximum size in bytes, or -1 for default */ public void setWebSocketMaxBinaryMessageSize(final int webSocketMaxBinaryMessageSize) { webSocketMaxBinaryMessageSize_ = webSocketMaxBinaryMessageSize; } /** - * @return the WebSocket maxBinaryMessageBufferSize + * Returns the maximum buffer size in bytes for assembling WebSocket binary messages. + * Set to -1 to use the container default. + * + * @return the maximum binary message buffer size in bytes, or -1 for default */ public int getWebSocketMaxBinaryMessageBufferSize() { return webSocketMaxBinaryMessageBufferSize_; } /** - * Sets the WebSocket maxBinaryMessageBufferSize. + * Sets the maximum buffer size in bytes for assembling WebSocket binary messages. + * This controls the memory used when reconstructing fragmented binary messages. * - * @param webSocketMaxBinaryMessageBufferSize the new value + * @param webSocketMaxBinaryMessageBufferSize the maximum buffer size in bytes, or -1 for default */ public void setWebSocketMaxBinaryMessageBufferSize(final int webSocketMaxBinaryMessageBufferSize) { webSocketMaxBinaryMessageBufferSize_ = webSocketMaxBinaryMessageBufferSize; @@ -913,13 +956,13 @@ public static class Geolocation implements Serializable { /** * Ctor. * - * @param accuracy the accuracy - * @param latitude the latitude - * @param longitude the longitude - * @param altitude the altitude or null - * @param altitudeAccuracy the altitudeAccuracy or null - * @param heading the heading or null - * @param speed the speed or null + * @param latitude the latitude coordinate in decimal degrees + * @param longitude the longitude coordinate in decimal degrees + * @param accuracy the accuracy of the position in meters + * @param altitude the altitude in meters above sea level, or null if unavailable + * @param altitudeAccuracy the accuracy of the altitude in meters, or null if unavailable + * @param heading the direction of travel in degrees (0-359), or null if unavailable + * @param speed the current speed in meters per second, or null if unavailable */ public Geolocation( final double latitude, @@ -992,7 +1035,11 @@ public Double getSpeed() { * If set to {@code true}, the client will accept XMLHttpRequests to URL's * using the 'file' protocol. Allowing this introduces security problems and is * therefore not allowed by current browsers. But some browsers have special settings - * to open this door; therefore we have this option. + * to open this door; therefore we have this option also. + * + *

Security Warning: Enabling this feature may expose local files + * to web content, which can be a serious security risk.

+ * * @param fileProtocolForXMLHttpRequestsAllowed whether or not allow (local) file access */ public void setFileProtocolForXMLHttpRequestsAllowed(final boolean fileProtocolForXMLHttpRequestsAllowed) { From ae53ff316fb7d643be30fd48c9076cfe7cac0bb3 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sat, 16 Aug 2025 19:17:14 +0200 Subject: [PATCH 34/39] unify @author --- pom.xml | 26 +++++++++++++++++++ src/main/java/org/htmlunit/AlertHandler.java | 2 +- .../java/org/htmlunit/BrowserVersion.java | 2 +- .../org/htmlunit/CollectingAlertHandler.java | 2 +- .../java/org/htmlunit/ConfirmHandler.java | 2 +- .../java/org/htmlunit/DefaultPageCreator.java | 6 ++--- .../htmlunit/ElementNotFoundException.java | 2 +- .../FailingHttpStatusCodeException.java | 2 +- src/main/java/org/htmlunit/HttpMethod.java | 2 +- .../java/org/htmlunit/HttpWebConnection.java | 2 +- .../org/htmlunit/ImmediateRefreshHandler.java | 2 +- .../java/org/htmlunit/MockWebConnection.java | 2 +- .../ObjectInstantiationException.java | 2 +- src/main/java/org/htmlunit/Page.java | 2 +- src/main/java/org/htmlunit/PageCreator.java | 4 +-- src/main/java/org/htmlunit/PromptHandler.java | 2 +- .../java/org/htmlunit/RefreshHandler.java | 2 +- src/main/java/org/htmlunit/Screen.java | 2 +- .../java/org/htmlunit/ScriptException.java | 2 +- .../java/org/htmlunit/ScriptPreProcessor.java | 2 +- src/main/java/org/htmlunit/ScriptResult.java | 2 +- src/main/java/org/htmlunit/StatusHandler.java | 2 +- .../java/org/htmlunit/StringWebResponse.java | 2 +- src/main/java/org/htmlunit/TextPage.java | 2 +- .../org/htmlunit/ThreadedRefreshHandler.java | 2 +- .../java/org/htmlunit/TopLevelWindow.java | 2 +- .../java/org/htmlunit/UnexpectedPage.java | 2 +- src/main/java/org/htmlunit/Version.java | 2 +- .../org/htmlunit/WaitingRefreshHandler.java | 2 +- src/main/java/org/htmlunit/WebAssert.java | 2 +- src/main/java/org/htmlunit/WebClient.java | 10 +++---- src/main/java/org/htmlunit/WebConnection.java | 2 +- src/main/java/org/htmlunit/WebResponse.java | 2 +- src/main/java/org/htmlunit/WebWindow.java | 2 +- .../java/org/htmlunit/WebWindowAdapter.java | 2 +- .../java/org/htmlunit/WebWindowEvent.java | 2 +- .../java/org/htmlunit/WebWindowListener.java | 2 +- .../htmlunit/WebWindowNotFoundException.java | 2 +- .../css/AbstractCssStyleDeclaration.java | 4 +-- .../css/ElementCssStyleDeclaration.java | 4 +-- .../java/org/htmlunit/css/StyleElement.java | 4 +-- .../css/WrappedCssStyleDeclaration.java | 4 +-- .../htmlunit/html/AbstractDomNodeList.java | 2 +- .../org/htmlunit/html/BaseFrameElement.java | 4 +-- .../htmlunit/html/DefaultElementFactory.java | 2 +- .../org/htmlunit/html/DomCharacterData.java | 2 +- .../java/org/htmlunit/html/DomElement.java | 2 +- src/main/java/org/htmlunit/html/DomNode.java | 8 +++--- .../java/org/htmlunit/html/DomNodeList.java | 2 +- src/main/java/org/htmlunit/html/DomText.java | 2 +- .../org/htmlunit/html/ElementFactory.java | 2 +- .../java/org/htmlunit/html/HtmlAddress.java | 4 +-- .../java/org/htmlunit/html/HtmlAnchor.java | 4 +-- src/main/java/org/htmlunit/html/HtmlArea.java | 4 +-- src/main/java/org/htmlunit/html/HtmlBase.java | 4 +-- .../java/org/htmlunit/html/HtmlBaseFont.java | 4 +-- .../html/HtmlBidirectionalOverride.java | 4 +-- .../org/htmlunit/html/HtmlBlockQuote.java | 4 +-- src/main/java/org/htmlunit/html/HtmlBody.java | 4 +-- .../java/org/htmlunit/html/HtmlBreak.java | 4 +-- .../java/org/htmlunit/html/HtmlButton.java | 4 +-- .../org/htmlunit/html/HtmlButtonInput.java | 4 +-- .../java/org/htmlunit/html/HtmlCaption.java | 4 +-- .../java/org/htmlunit/html/HtmlCenter.java | 4 +-- .../org/htmlunit/html/HtmlCheckBoxInput.java | 6 ++--- .../html/HtmlDefinitionDescription.java | 4 +-- .../org/htmlunit/html/HtmlDefinitionList.java | 4 +-- .../org/htmlunit/html/HtmlDefinitionTerm.java | 4 +-- .../org/htmlunit/html/HtmlDeletedText.java | 4 +-- .../java/org/htmlunit/html/HtmlDirectory.java | 4 +-- .../java/org/htmlunit/html/HtmlDivision.java | 4 +-- .../org/htmlunit/html/HtmlDomTreeWalker.java | 2 +- .../java/org/htmlunit/html/HtmlElement.java | 6 ++--- .../java/org/htmlunit/html/HtmlFieldSet.java | 4 +-- .../java/org/htmlunit/html/HtmlFileInput.java | 4 +-- src/main/java/org/htmlunit/html/HtmlFont.java | 4 +-- src/main/java/org/htmlunit/html/HtmlForm.java | 4 +-- .../java/org/htmlunit/html/HtmlFrame.java | 4 +-- .../java/org/htmlunit/html/HtmlFrameSet.java | 4 +-- src/main/java/org/htmlunit/html/HtmlHead.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading1.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading2.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading3.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading4.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading5.java | 4 +-- .../java/org/htmlunit/html/HtmlHeading6.java | 4 +-- .../org/htmlunit/html/HtmlHiddenInput.java | 4 +-- .../org/htmlunit/html/HtmlHorizontalRule.java | 4 +-- .../java/org/htmlunit/html/HtmlImage.java | 6 ++--- .../org/htmlunit/html/HtmlImageInput.java | 4 +-- .../org/htmlunit/html/HtmlInlineFrame.java | 4 +-- .../htmlunit/html/HtmlInlineQuotation.java | 4 +-- .../java/org/htmlunit/html/HtmlInput.java | 4 +-- .../org/htmlunit/html/HtmlInsertedText.java | 4 +-- .../java/org/htmlunit/html/HtmlLabel.java | 4 +-- .../java/org/htmlunit/html/HtmlLegend.java | 4 +-- src/main/java/org/htmlunit/html/HtmlLink.java | 4 +-- .../java/org/htmlunit/html/HtmlListItem.java | 4 +-- src/main/java/org/htmlunit/html/HtmlMap.java | 4 +-- src/main/java/org/htmlunit/html/HtmlMenu.java | 4 +-- src/main/java/org/htmlunit/html/HtmlMeta.java | 4 +-- .../java/org/htmlunit/html/HtmlNoFrames.java | 4 +-- .../java/org/htmlunit/html/HtmlNoScript.java | 4 +-- .../java/org/htmlunit/html/HtmlObject.java | 4 +-- .../java/org/htmlunit/html/HtmlOption.java | 4 +-- .../org/htmlunit/html/HtmlOptionGroup.java | 4 +-- .../org/htmlunit/html/HtmlOrderedList.java | 4 +-- src/main/java/org/htmlunit/html/HtmlPage.java | 6 ++--- .../java/org/htmlunit/html/HtmlParagraph.java | 4 +-- .../java/org/htmlunit/html/HtmlParameter.java | 4 +-- .../org/htmlunit/html/HtmlPasswordInput.java | 4 +-- .../htmlunit/html/HtmlPreformattedText.java | 4 +-- .../htmlunit/html/HtmlRadioButtonInput.java | 4 +-- .../org/htmlunit/html/HtmlResetInput.java | 4 +-- .../java/org/htmlunit/html/HtmlScript.java | 4 +-- .../java/org/htmlunit/html/HtmlSelect.java | 6 ++--- src/main/java/org/htmlunit/html/HtmlSpan.java | 4 +-- .../java/org/htmlunit/html/HtmlStyle.java | 4 +-- .../org/htmlunit/html/HtmlSubmitInput.java | 4 +-- .../java/org/htmlunit/html/HtmlTable.java | 4 +-- .../java/org/htmlunit/html/HtmlTableBody.java | 4 +-- .../java/org/htmlunit/html/HtmlTableCell.java | 4 +-- .../org/htmlunit/html/HtmlTableColumn.java | 4 +-- .../htmlunit/html/HtmlTableColumnGroup.java | 4 +-- .../org/htmlunit/html/HtmlTableDataCell.java | 4 +-- .../org/htmlunit/html/HtmlTableFooter.java | 4 +-- .../org/htmlunit/html/HtmlTableHeader.java | 4 +-- .../htmlunit/html/HtmlTableHeaderCell.java | 4 +-- .../java/org/htmlunit/html/HtmlTableRow.java | 4 +-- .../java/org/htmlunit/html/HtmlTextArea.java | 6 ++--- .../java/org/htmlunit/html/HtmlTextInput.java | 4 +-- .../java/org/htmlunit/html/HtmlTitle.java | 4 +-- .../org/htmlunit/html/HtmlUnknownElement.java | 4 +-- .../org/htmlunit/html/HtmlUnorderedList.java | 4 +-- .../org/htmlunit/html/SiblingDomNodeList.java | 2 +- .../org/htmlunit/html/SubmittableElement.java | 2 +- .../java/org/htmlunit/html/TableRowGroup.java | 4 +-- .../htmlunit/html/UnknownElementFactory.java | 2 +- .../org/htmlunit/html/parser/HTMLParser.java | 2 +- .../html/parser/HTMLParserDOMBuilder.java | 2 +- .../parser/neko/HtmlUnitNekoDOMBuilder.java | 2 +- .../parser/neko/HtmlUnitNekoHtmlParser.java | 2 +- .../HtmlUnitBrowserCompatCookieSpec.java | 2 +- .../httpclient/HtmlUnitExpiresHandler.java | 2 +- .../httpclient/HtmlUnitHttpOnlyHandler.java | 2 +- .../httpclient/HtmlUnitPathHandler.java | 2 +- .../javascript/AbstractJavaScriptEngine.java | 6 ++--- .../javascript/HtmlUnitScriptable.java | 2 +- .../htmlunit/javascript/JavaScriptEngine.java | 6 ++--- .../AbstractJavaScriptConfiguration.java | 2 +- .../configuration/ClassConfiguration.java | 2 +- .../JavaScriptConfiguration.java | 2 +- .../org/htmlunit/javascript/host/History.java | 2 +- .../htmlunit/javascript/host/Location.java | 2 +- .../htmlunit/javascript/host/Navigator.java | 2 +- .../org/htmlunit/javascript/host/Screen.java | 2 +- .../org/htmlunit/javascript/host/Window.java | 6 ++--- .../host/css/CSSStyleDeclaration.java | 4 +-- .../javascript/host/dom/Document.java | 8 +++--- .../htmlunit/javascript/host/dom/Node.java | 6 ++--- .../javascript/host/dom/NodeFilter.java | 2 +- .../javascript/host/dom/TreeWalker.java | 2 +- .../htmlunit/javascript/host/event/Event.java | 2 +- .../host/html/HTMLAnchorElement.java | 4 +-- .../host/html/HTMLButtonElement.java | 2 +- .../javascript/host/html/HTMLDocument.java | 10 +++---- .../javascript/host/html/HTMLElement.java | 4 +-- .../javascript/host/html/HTMLFormElement.java | 2 +- .../host/html/HTMLImageElement.java | 4 +-- .../host/html/HTMLInputElement.java | 4 +-- .../host/html/HTMLOptionElement.java | 2 +- .../host/html/HTMLOptionsCollection.java | 2 +- .../host/html/HTMLSelectElement.java | 2 +- .../host/html/HTMLTableCellElement.java | 2 +- .../host/html/HTMLTableElement.java | 2 +- .../host/html/HTMLTextAreaElement.java | 2 +- .../platform/image/ImageIOImageData.java | 6 ++--- .../protocol/about/AboutURLConnection.java | 2 +- .../org/htmlunit/protocol/about/Handler.java | 2 +- .../htmlunit/protocol/javascript/Handler.java | 2 +- .../javascript/JavaScriptURLConnection.java | 2 +- ...celyResynchronizingAjaxControllerTest.java | 2 +- .../org/htmlunit/ScriptPreProcessorTest.java | 6 ++--- .../java/org/htmlunit/SimpleWebTestCase.java | 2 +- .../java/org/htmlunit/TopLevelWindowTest.java | 2 +- .../java/org/htmlunit/WebClient5Test.java | 6 ++--- src/test/java/org/htmlunit/WebClientTest.java | 6 ++--- src/test/java/org/htmlunit/WebTestCase.java | 2 +- .../org/htmlunit/html/AttributesTest.java | 2 +- .../html/DefaultElementFactoryTest.java | 2 +- .../org/htmlunit/html/DomNodeListTest.java | 2 +- .../org/htmlunit/html/HtmlAnchor2Test.java | 2 +- .../java/org/htmlunit/html/HtmlArea2Test.java | 2 +- .../org/htmlunit/html/HtmlButton2Test.java | 2 +- .../htmlunit/html/HtmlButtonInput2Test.java | 2 +- .../htmlunit/html/HtmlButtonInputTest.java | 2 +- .../org/htmlunit/html/HtmlButtonTest.java | 2 +- .../org/htmlunit/html/HtmlElement2Test.java | 2 +- .../org/htmlunit/html/HtmlElementTest.java | 2 +- .../java/org/htmlunit/html/HtmlFormTest.java | 4 +-- .../org/htmlunit/html/HtmlFrameSetTest.java | 2 +- .../java/org/htmlunit/html/HtmlFrameTest.java | 2 +- .../htmlunit/html/HtmlImageInput2Test.java | 2 +- .../org/htmlunit/html/HtmlImageInputTest.java | 2 +- .../htmlunit/html/HtmlInlineFrame2Test.java | 2 +- .../htmlunit/html/HtmlInlineFrameTest.java | 2 +- .../java/org/htmlunit/html/HtmlInputTest.java | 2 +- .../org/htmlunit/html/HtmlIsIndex2Test.java | 2 +- .../org/htmlunit/html/HtmlOptionTest.java | 2 +- .../java/org/htmlunit/html/HtmlPage4Test.java | 4 +-- .../java/org/htmlunit/html/HtmlPageTest.java | 4 +-- .../org/htmlunit/html/HtmlResetInputTest.java | 2 +- .../org/htmlunit/html/HtmlSelectTest.java | 2 +- .../htmlunit/html/HtmlSubmitInput2Test.java | 2 +- .../htmlunit/html/HtmlSubmitInputTest.java | 2 +- .../org/htmlunit/html/HtmlTableCellTest.java | 2 +- .../org/htmlunit/html/HtmlTableRowTest.java | 2 +- .../htmlunit/html/HtmlTableSection2Test.java | 2 +- .../htmlunit/html/HtmlTableSectionTest.java | 2 +- .../java/org/htmlunit/html/HtmlTableTest.java | 2 +- .../org/htmlunit/html/HtmlTextAreaTest.java | 2 +- .../htmlunit/html/LoggingRefreshHandler.java | 2 +- .../htmlunit/html/parser/HTMLParser3Test.java | 2 +- .../htmlunit/html/parser/HTMLParser4Test.java | 2 +- .../htmlunit/html/parser/HTMLParserTest.java | 2 +- .../javascript/AttributeCaseTest.java | 2 +- .../javascript/HtmlUnitScriptable2Test.java | 8 +++--- .../javascript/HtmlUnitScriptableTest.java | 8 +++--- .../javascript/JavaScriptEngineTest.java | 4 +-- .../javascript/host/Location2Test.java | 2 +- .../javascript/host/LocationTest.java | 2 +- .../javascript/host/NavigatorTest.java | 2 +- .../htmlunit/javascript/host/Window3Test.java | 4 +-- .../htmlunit/javascript/host/WindowTest.java | 4 +-- .../host/css/CSSStyleDeclarationTest.java | 2 +- .../javascript/host/dom/DocumentTest.java | 4 +-- .../javascript/host/dom/Node2Test.java | 2 +- .../javascript/host/dom/NodeTest.java | 2 +- .../javascript/host/dom/TreeWalkerTest.java | 2 +- .../javascript/host/event/Event3Test.java | 2 +- .../javascript/host/event/Event4Test.java | 2 +- .../javascript/host/event/EventTest.java | 2 +- .../host/html/HTMLAnchorElementTest.java | 2 +- .../host/html/HTMLElement3Test.java | 2 +- .../javascript/host/html/HTMLElementTest.java | 2 +- .../host/html/HTMLFieldSetElementTest.java | 2 +- .../host/html/HTMLFormElement2Test.java | 2 +- .../host/html/HTMLFormElementTest.java | 2 +- .../host/html/HTMLImageElement2Test.java | 2 +- .../host/html/HTMLImageElementTest.java | 2 +- .../host/html/HTMLInputElement2Test.java | 2 +- .../host/html/HTMLInputElementTest.java | 2 +- .../host/html/HTMLSelectElement2Test.java | 2 +- .../host/html/HTMLSelectElementTest.java | 2 +- .../host/html/HTMLTableElement2Test.java | 2 +- .../host/html/HTMLTableElementTest.java | 2 +- .../host/html/HTMLTextAreaElement2Test.java | 2 +- .../host/html/HTMLTextAreaElementTest.java | 2 +- 258 files changed, 428 insertions(+), 402 deletions(-) diff --git a/pom.xml b/pom.xml index 36c0270260..239b58d0c3 100644 --- a/pom.xml +++ b/pom.xml @@ -934,6 +934,7 @@ Barnaby Court + BarnabyCourt@users.sourceforge.net Andreas Hangler @@ -961,6 +962,7 @@ Mike Gallaher + gallaherm@pragmatics.com Dierk Koenig @@ -973,6 +975,7 @@ Chris Eldredge + chriseldredge@comcast.net Hans Donner @@ -982,6 +985,7 @@ George Murnock + george@murnock.com Kent Tong @@ -1015,6 +1019,7 @@ Mark van Leeuwen + https://sourceforge.net/users/marlee/ Brad Murray @@ -1078,6 +1083,7 @@ Mike Dirolf + mike@10gen.com Mirko Friedenhagen @@ -1278,6 +1284,26 @@ Christoph Burgmer + + Tom Anderson + tom.anderson@univ.oxon.org + + + Knut Johannes Dahle + knut.johannes.dahle@gmail.com + + + Alexei Goussev + gousseff@netscape.net + + + Nick Kralevich + nnk@google.com + + + Marcos Vinicius B. de Souza + marvin.java@gmail.com + diff --git a/src/main/java/org/htmlunit/AlertHandler.java b/src/main/java/org/htmlunit/AlertHandler.java index d8b768a0f6..8433308f7a 100644 --- a/src/main/java/org/htmlunit/AlertHandler.java +++ b/src/main/java/org/htmlunit/AlertHandler.java @@ -20,7 +20,7 @@ * A handler for JavaScript alerts. Alerts are triggered when the JavaScript method Window.alert() * is called. * - * @author Mike Bowler + * @author Mike Bowler * @author Ronald Brill */ @FunctionalInterface diff --git a/src/main/java/org/htmlunit/BrowserVersion.java b/src/main/java/org/htmlunit/BrowserVersion.java index aa9d751328..cedc47bde4 100644 --- a/src/main/java/org/htmlunit/BrowserVersion.java +++ b/src/main/java/org/htmlunit/BrowserVersion.java @@ -53,7 +53,7 @@ * outside is changed. This is more or less the same you can do with real browsers installing * plugins like UserAgentSwitcher. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler * @author Marc Guillemot * @author Chris Erskine diff --git a/src/main/java/org/htmlunit/CollectingAlertHandler.java b/src/main/java/org/htmlunit/CollectingAlertHandler.java index 76ca4d2aae..d13553931c 100644 --- a/src/main/java/org/htmlunit/CollectingAlertHandler.java +++ b/src/main/java/org/htmlunit/CollectingAlertHandler.java @@ -21,7 +21,7 @@ /** * A simple alert handler that keeps track of alerts in a list. * - * @author Mike Bowler + * @author Mike Bowler */ public class CollectingAlertHandler implements AlertHandler, Serializable { diff --git a/src/main/java/org/htmlunit/ConfirmHandler.java b/src/main/java/org/htmlunit/ConfirmHandler.java index 1502869f3e..640506d248 100644 --- a/src/main/java/org/htmlunit/ConfirmHandler.java +++ b/src/main/java/org/htmlunit/ConfirmHandler.java @@ -20,7 +20,7 @@ * A handler for the JavaScript function window.confirm(). Confirms * are triggered when the JavaScript function window.confirm() is invoked. * - * @author Mike Bowler + * @author Mike Bowler * @author Ronald Brill */ @FunctionalInterface diff --git a/src/main/java/org/htmlunit/DefaultPageCreator.java b/src/main/java/org/htmlunit/DefaultPageCreator.java index 85aff6db4c..ea3bcc5f3e 100644 --- a/src/main/java/org/htmlunit/DefaultPageCreator.java +++ b/src/main/java/org/htmlunit/DefaultPageCreator.java @@ -69,9 +69,9 @@ * * * - * @author Mike Bowler - * @author Christian Sell - * @author Brad Clarke + * @author Mike Bowler + * @author Christian Sell + * @author Brad Clarke * @author Marc Guillemot * @author Ahmed Ashour * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/ElementNotFoundException.java b/src/main/java/org/htmlunit/ElementNotFoundException.java index 3f178ad515..c59dfcec5f 100644 --- a/src/main/java/org/htmlunit/ElementNotFoundException.java +++ b/src/main/java/org/htmlunit/ElementNotFoundException.java @@ -17,7 +17,7 @@ /** * An exception that is thrown when a specified XML element cannot be found in the DOM model. * - * @author Mike Bowler + * @author Mike Bowler */ public class ElementNotFoundException extends RuntimeException { diff --git a/src/main/java/org/htmlunit/FailingHttpStatusCodeException.java b/src/main/java/org/htmlunit/FailingHttpStatusCodeException.java index 98b652d680..a262ab3784 100644 --- a/src/main/java/org/htmlunit/FailingHttpStatusCodeException.java +++ b/src/main/java/org/htmlunit/FailingHttpStatusCodeException.java @@ -19,7 +19,7 @@ /** * An exception that is thrown when the server returns a failing status code. * - * @author Mike Bowler + * @author Mike Bowler * @author Marc Guillemot */ public class FailingHttpStatusCodeException extends RuntimeException { diff --git a/src/main/java/org/htmlunit/HttpMethod.java b/src/main/java/org/htmlunit/HttpMethod.java index 3600246978..9c11e71cb1 100644 --- a/src/main/java/org/htmlunit/HttpMethod.java +++ b/src/main/java/org/htmlunit/HttpMethod.java @@ -20,7 +20,7 @@ * @see RFC2616 * @see RFC5789 * - * @author Mike Bowler + * @author Mike Bowler * @author Ahmed Ashour * @author Marc Guillemot */ diff --git a/src/main/java/org/htmlunit/HttpWebConnection.java b/src/main/java/org/htmlunit/HttpWebConnection.java index a530424578..f2b2420d72 100644 --- a/src/main/java/org/htmlunit/HttpWebConnection.java +++ b/src/main/java/org/htmlunit/HttpWebConnection.java @@ -117,7 +117,7 @@ /** * Default implementation of {@link WebConnection}, using the HttpClient library to perform HTTP requests. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author David D. Kilzer * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/ImmediateRefreshHandler.java b/src/main/java/org/htmlunit/ImmediateRefreshHandler.java index de10d5746c..ecd307efa6 100644 --- a/src/main/java/org/htmlunit/ImmediateRefreshHandler.java +++ b/src/main/java/org/htmlunit/ImmediateRefreshHandler.java @@ -25,7 +25,7 @@ * If you want a refresh handler that does not ignore the wait time, * see {@link ThreadedRefreshHandler}. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler * @author Marc Guillemot * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/MockWebConnection.java b/src/main/java/org/htmlunit/MockWebConnection.java index 4e28befb68..ffec2ea38c 100644 --- a/src/main/java/org/htmlunit/MockWebConnection.java +++ b/src/main/java/org/htmlunit/MockWebConnection.java @@ -33,7 +33,7 @@ /** * A fake {@link WebConnection} designed to mock out the actual HTTP connections. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author Marc Guillemot * @author Brad Clarke diff --git a/src/main/java/org/htmlunit/ObjectInstantiationException.java b/src/main/java/org/htmlunit/ObjectInstantiationException.java index 4645bcfeaf..321cfb4c18 100644 --- a/src/main/java/org/htmlunit/ObjectInstantiationException.java +++ b/src/main/java/org/htmlunit/ObjectInstantiationException.java @@ -17,7 +17,7 @@ /** * Thrown if an object could not be instantiated for some reason. * - * @author Mike Bowler + * @author Mike Bowler * @author Ahmed Ashour */ public class ObjectInstantiationException extends RuntimeException { diff --git a/src/main/java/org/htmlunit/Page.java b/src/main/java/org/htmlunit/Page.java index e721620594..9ada5d339b 100644 --- a/src/main/java/org/htmlunit/Page.java +++ b/src/main/java/org/htmlunit/Page.java @@ -21,7 +21,7 @@ /** * An abstract page that represents some content returned from a server. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author Marc Guillemot * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/PageCreator.java b/src/main/java/org/htmlunit/PageCreator.java index d774a5fb75..15890b2b8a 100644 --- a/src/main/java/org/htmlunit/PageCreator.java +++ b/src/main/java/org/htmlunit/PageCreator.java @@ -24,8 +24,8 @@ * and the page, usually by calling {@link WebWindow#setEnclosedPage(Page)}. This should * be done as early as possible, e.g. to allow for re-loading of pages during page parsing. * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell */ public interface PageCreator { diff --git a/src/main/java/org/htmlunit/PromptHandler.java b/src/main/java/org/htmlunit/PromptHandler.java index 484aa3cc45..0511e013ed 100644 --- a/src/main/java/org/htmlunit/PromptHandler.java +++ b/src/main/java/org/htmlunit/PromptHandler.java @@ -20,7 +20,7 @@ * A handler for JavaScript window.prompt(). Prompts are triggered when the JavaScript * method Window.prompt() is called. * - * @author Mike Bowler + * @author Mike Bowler * @author Ahmed Ashour * @author Ronald Brill */ diff --git a/src/main/java/org/htmlunit/RefreshHandler.java b/src/main/java/org/htmlunit/RefreshHandler.java index aec83a4600..2f97e986ef 100644 --- a/src/main/java/org/htmlunit/RefreshHandler.java +++ b/src/main/java/org/htmlunit/RefreshHandler.java @@ -20,7 +20,7 @@ /** * A handler for page refreshes. A refresh can be triggered by a response header or a meta tag. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler */ public interface RefreshHandler { diff --git a/src/main/java/org/htmlunit/Screen.java b/src/main/java/org/htmlunit/Screen.java index 739c513185..9dbb305680 100644 --- a/src/main/java/org/htmlunit/Screen.java +++ b/src/main/java/org/htmlunit/Screen.java @@ -19,7 +19,7 @@ /** * {@code Screen}. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler * @author Chris Erskine * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/ScriptException.java b/src/main/java/org/htmlunit/ScriptException.java index 275b3248f5..e81da8e51d 100644 --- a/src/main/java/org/htmlunit/ScriptException.java +++ b/src/main/java/org/htmlunit/ScriptException.java @@ -34,7 +34,7 @@ * An exception that will be thrown if an error occurs during the processing of * a script. * - * @author Mike Bowler + * @author Mike Bowler * @author Marc Guillemot * @author Frank Danek * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/ScriptPreProcessor.java b/src/main/java/org/htmlunit/ScriptPreProcessor.java index b5c0ede977..de55fc77b6 100644 --- a/src/main/java/org/htmlunit/ScriptPreProcessor.java +++ b/src/main/java/org/htmlunit/ScriptPreProcessor.java @@ -21,7 +21,7 @@ * A script pre processor call back. This interface is called when ScriptEngine.execute() * is called. It gives developers the opportunity to modify the script to be executed. * - * @author Ben Curren + * @author Ben Curren */ public interface ScriptPreProcessor { diff --git a/src/main/java/org/htmlunit/ScriptResult.java b/src/main/java/org/htmlunit/ScriptResult.java index c30b563043..126b82a355 100644 --- a/src/main/java/org/htmlunit/ScriptResult.java +++ b/src/main/java/org/htmlunit/ScriptResult.java @@ -19,7 +19,7 @@ /** * This object contains the result of executing a chunk of script code. * - * @author Mike Bowler + * @author Mike Bowler * @author Marc Guillemot */ public final class ScriptResult { diff --git a/src/main/java/org/htmlunit/StatusHandler.java b/src/main/java/org/htmlunit/StatusHandler.java index 2ea5ff8be5..14106f6b1e 100644 --- a/src/main/java/org/htmlunit/StatusHandler.java +++ b/src/main/java/org/htmlunit/StatusHandler.java @@ -19,7 +19,7 @@ /** * A handler for changes to window.status. * - * @author Mike Bowler + * @author Mike Bowler * @author Ronald Brill */ public interface StatusHandler extends Serializable { diff --git a/src/main/java/org/htmlunit/StringWebResponse.java b/src/main/java/org/htmlunit/StringWebResponse.java index 0f1d0fbd79..5510c98993 100644 --- a/src/main/java/org/htmlunit/StringWebResponse.java +++ b/src/main/java/org/htmlunit/StringWebResponse.java @@ -28,7 +28,7 @@ /** * A simple WebResponse created from a string. Content is assumed to be of type text/html. * - * @author Mike Bowler + * @author Mike Bowler * @author Marc Guillemot * @author Brad Clarke * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/TextPage.java b/src/main/java/org/htmlunit/TextPage.java index 1c30e4c721..9d2edf7372 100644 --- a/src/main/java/org/htmlunit/TextPage.java +++ b/src/main/java/org/htmlunit/TextPage.java @@ -24,7 +24,7 @@ * A generic page that will be returned for any text related content. * Specifically any content types that start with {@code text/} * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author Ronald Brill * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/ThreadedRefreshHandler.java b/src/main/java/org/htmlunit/ThreadedRefreshHandler.java index 756f11401e..97d39b0c32 100644 --- a/src/main/java/org/htmlunit/ThreadedRefreshHandler.java +++ b/src/main/java/org/htmlunit/ThreadedRefreshHandler.java @@ -28,7 +28,7 @@ * If you want a refresh handler that ignores the wait time, see * {@link ImmediateRefreshHandler}. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler */ public class ThreadedRefreshHandler implements RefreshHandler { diff --git a/src/main/java/org/htmlunit/TopLevelWindow.java b/src/main/java/org/htmlunit/TopLevelWindow.java index 178006f2c3..e033aff105 100644 --- a/src/main/java/org/htmlunit/TopLevelWindow.java +++ b/src/main/java/org/htmlunit/TopLevelWindow.java @@ -22,7 +22,7 @@ /** * A window representing a top level browser window. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author David D. Kilzer * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/UnexpectedPage.java b/src/main/java/org/htmlunit/UnexpectedPage.java index faa027e247..e4aff8cdf7 100644 --- a/src/main/java/org/htmlunit/UnexpectedPage.java +++ b/src/main/java/org/htmlunit/UnexpectedPage.java @@ -20,7 +20,7 @@ /** * A generic page that is returned whenever an unexpected content type is returned by the server. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author Ronald Brill * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/Version.java b/src/main/java/org/htmlunit/Version.java index dcb6d45202..cee0c4f802 100644 --- a/src/main/java/org/htmlunit/Version.java +++ b/src/main/java/org/htmlunit/Version.java @@ -20,7 +20,7 @@ * Class to display version information about HtmlUnit. This is the class * that will be executed if the JAR file is run. * - * @author Mike Bowler + * @author Mike Bowler * @author Ahmed Ashour * @author Ronald Brill */ diff --git a/src/main/java/org/htmlunit/WaitingRefreshHandler.java b/src/main/java/org/htmlunit/WaitingRefreshHandler.java index 1d26563b47..4b69de235c 100644 --- a/src/main/java/org/htmlunit/WaitingRefreshHandler.java +++ b/src/main/java/org/htmlunit/WaitingRefreshHandler.java @@ -28,7 +28,7 @@ * If you want a refresh handler that ignores the wait time, see * {@link ImmediateRefreshHandler}. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler * @author Sven Strickroth */ diff --git a/src/main/java/org/htmlunit/WebAssert.java b/src/main/java/org/htmlunit/WebAssert.java index 612e444cc4..e2d7647ef7 100644 --- a/src/main/java/org/htmlunit/WebAssert.java +++ b/src/main/java/org/htmlunit/WebAssert.java @@ -28,7 +28,7 @@ * Utility class which contains standard assertions for HTML pages. * * @author Daniel Gredler - * @author Mike Bowler + * @author Mike Bowler * @author Ahmed Ashour */ public final class WebAssert { diff --git a/src/main/java/org/htmlunit/WebClient.java b/src/main/java/org/htmlunit/WebClient.java index f36c8aa52a..321f22a3e7 100644 --- a/src/main/java/org/htmlunit/WebClient.java +++ b/src/main/java/org/htmlunit/WebClient.java @@ -122,14 +122,14 @@ *

* Note: a {@link WebClient} instance is not thread safe. It is intended to be used from a single thread. *

- * @author Mike Bowler - * @author Mike J. Bresnahan + * @author Mike Bowler + * @author Mike J. Bresnahan * @author Dominique Broeglin * @author Noboru Sinohara - * @author Chen Jun + * @author Chen Jun * @author David K. Taylor - * @author Christian Sell - * @author Ben Curren + * @author Christian Sell + * @author Ben Curren * @author Marc Guillemot * @author Chris Erskine * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/WebConnection.java b/src/main/java/org/htmlunit/WebConnection.java index 956d3f41f9..74d128c51b 100644 --- a/src/main/java/org/htmlunit/WebConnection.java +++ b/src/main/java/org/htmlunit/WebConnection.java @@ -19,7 +19,7 @@ /** * An object which handles the actual communication portion of page retrieval/submission. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler * @author Marc Guillemot * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/WebResponse.java b/src/main/java/org/htmlunit/WebResponse.java index 4661bde6bb..f7f93cdc7c 100644 --- a/src/main/java/org/htmlunit/WebResponse.java +++ b/src/main/java/org/htmlunit/WebResponse.java @@ -39,7 +39,7 @@ /** * A response from a web server. * - * @author Mike Bowler + * @author Mike Bowler * @author Brad Clarke * @author Noboru Sinohara * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/WebWindow.java b/src/main/java/org/htmlunit/WebWindow.java index 09612fd7ce..fe06b59252 100644 --- a/src/main/java/org/htmlunit/WebWindow.java +++ b/src/main/java/org/htmlunit/WebWindow.java @@ -24,7 +24,7 @@ /** * An interface that represents one window in a browser. It could be a top level window or a frame. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author David D. Kilzer */ diff --git a/src/main/java/org/htmlunit/WebWindowAdapter.java b/src/main/java/org/htmlunit/WebWindowAdapter.java index e23da1d128..4183688ef9 100644 --- a/src/main/java/org/htmlunit/WebWindowAdapter.java +++ b/src/main/java/org/htmlunit/WebWindowAdapter.java @@ -17,7 +17,7 @@ /** * An adapter for the WebWindowListener interface. * - * @author Mike Bowler + * @author Mike Bowler */ public class WebWindowAdapter implements WebWindowListener { diff --git a/src/main/java/org/htmlunit/WebWindowEvent.java b/src/main/java/org/htmlunit/WebWindowEvent.java index bbe17d7b1d..25c2b41c8e 100644 --- a/src/main/java/org/htmlunit/WebWindowEvent.java +++ b/src/main/java/org/htmlunit/WebWindowEvent.java @@ -19,7 +19,7 @@ /** * An event that will be fired when a WebWindow changes. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor */ public final class WebWindowEvent extends EventObject { diff --git a/src/main/java/org/htmlunit/WebWindowListener.java b/src/main/java/org/htmlunit/WebWindowListener.java index e111fc50c7..f030bae8b9 100644 --- a/src/main/java/org/htmlunit/WebWindowListener.java +++ b/src/main/java/org/htmlunit/WebWindowListener.java @@ -30,7 +30,7 @@ * called for each and every containing (i)Frame when e.g. closing a {@link TopLevelWindow}. *

* - * @author Mike Bowler + * @author Mike Bowler * @author Ronald Brill */ public interface WebWindowListener { diff --git a/src/main/java/org/htmlunit/WebWindowNotFoundException.java b/src/main/java/org/htmlunit/WebWindowNotFoundException.java index a0624ad929..b56483ba86 100644 --- a/src/main/java/org/htmlunit/WebWindowNotFoundException.java +++ b/src/main/java/org/htmlunit/WebWindowNotFoundException.java @@ -18,7 +18,7 @@ * Exception to indicate that no {@link WebWindow} could be found that matched * a given name. * - * @author Mike Bowler + * @author Mike Bowler */ public class WebWindowNotFoundException extends RuntimeException { private final String name_; diff --git a/src/main/java/org/htmlunit/css/AbstractCssStyleDeclaration.java b/src/main/java/org/htmlunit/css/AbstractCssStyleDeclaration.java index c0baff12da..80fc46355e 100644 --- a/src/main/java/org/htmlunit/css/AbstractCssStyleDeclaration.java +++ b/src/main/java/org/htmlunit/css/AbstractCssStyleDeclaration.java @@ -39,8 +39,8 @@ /** * A css StyleDeclaration. * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/css/ElementCssStyleDeclaration.java b/src/main/java/org/htmlunit/css/ElementCssStyleDeclaration.java index f98bab0d4b..33bed3a0f9 100644 --- a/src/main/java/org/htmlunit/css/ElementCssStyleDeclaration.java +++ b/src/main/java/org/htmlunit/css/ElementCssStyleDeclaration.java @@ -27,8 +27,8 @@ /** * A css StyleDeclaration backed by a {@link DomElement}. * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/css/StyleElement.java b/src/main/java/org/htmlunit/css/StyleElement.java index 2e4f2a2714..5593f91da0 100644 --- a/src/main/java/org/htmlunit/css/StyleElement.java +++ b/src/main/java/org/htmlunit/css/StyleElement.java @@ -25,8 +25,8 @@ * Contains information about a single style element, including its name, its value, and an index which * can be compared against other indices in order to determine precedence. * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/css/WrappedCssStyleDeclaration.java b/src/main/java/org/htmlunit/css/WrappedCssStyleDeclaration.java index 6654f6acab..b36fced1e4 100644 --- a/src/main/java/org/htmlunit/css/WrappedCssStyleDeclaration.java +++ b/src/main/java/org/htmlunit/css/WrappedCssStyleDeclaration.java @@ -27,8 +27,8 @@ /** * A css StyleDeclaration backed by a {@link CSSStyleDeclarationImpl}. * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/AbstractDomNodeList.java b/src/main/java/org/htmlunit/html/AbstractDomNodeList.java index c5a1434f11..0afc18d220 100644 --- a/src/main/java/org/htmlunit/html/AbstractDomNodeList.java +++ b/src/main/java/org/htmlunit/html/AbstractDomNodeList.java @@ -28,7 +28,7 @@ * @param The element type * * @author Daniel Gredler - * @author Tom Anderson + * @author Tom Anderson * @author Ronald Brill */ public abstract class AbstractDomNodeList extends AbstractList diff --git a/src/main/java/org/htmlunit/html/BaseFrameElement.java b/src/main/java/org/htmlunit/html/BaseFrameElement.java index 7d1ffd0aa3..a4408b4da0 100644 --- a/src/main/java/org/htmlunit/html/BaseFrameElement.java +++ b/src/main/java/org/htmlunit/html/BaseFrameElement.java @@ -40,9 +40,9 @@ /** * Base class for frame and iframe. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author David D. Kilzer * @author Stefan Anzinger diff --git a/src/main/java/org/htmlunit/html/DefaultElementFactory.java b/src/main/java/org/htmlunit/html/DefaultElementFactory.java index fa2fc7a0b5..a91e03a651 100644 --- a/src/main/java/org/htmlunit/html/DefaultElementFactory.java +++ b/src/main/java/org/htmlunit/html/DefaultElementFactory.java @@ -41,7 +41,7 @@ * where the first one is the owning page of the element, the second one is a map * holding the initial attributes for the element. * - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author David K. Taylor diff --git a/src/main/java/org/htmlunit/html/DomCharacterData.java b/src/main/java/org/htmlunit/html/DomCharacterData.java index 79e316a31f..d760517aeb 100644 --- a/src/main/java/org/htmlunit/html/DomCharacterData.java +++ b/src/main/java/org/htmlunit/html/DomCharacterData.java @@ -21,7 +21,7 @@ * Wrapper for the DOM node CharacterData. * * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Philip Graf * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/DomElement.java b/src/main/java/org/htmlunit/html/DomElement.java index e2356510d3..6d1760742c 100644 --- a/src/main/java/org/htmlunit/html/DomElement.java +++ b/src/main/java/org/htmlunit/html/DomElement.java @@ -71,7 +71,7 @@ /** * @author Ahmed Ashour * @author Marc Guillemot - * @author Tom Anderson + * @author Tom Anderson * @author Ronald Brill * @author Frank Danek * @author Sven Strickroth diff --git a/src/main/java/org/htmlunit/html/DomNode.java b/src/main/java/org/htmlunit/html/DomNode.java index 21db7e8fd0..bf45669f9e 100644 --- a/src/main/java/org/htmlunit/html/DomNode.java +++ b/src/main/java/org/htmlunit/html/DomNode.java @@ -61,10 +61,10 @@ * Base class for nodes in the HTML DOM tree. This class is modeled after the * W3C DOM specification, but does not implement it. * - * @author Mike Bowler - * @author Mike J. Bresnahan + * @author Mike Bowler + * @author Mike J. Bresnahan * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Chris Erskine * @author Mike Williams * @author Marc Guillemot @@ -73,7 +73,7 @@ * @author Ahmed Ashour * @author Rodney Gitzel * @author Sudhan Moghe - * @author Tom Anderson + * @author Tom Anderson * @author Ronald Brill * @author Chuck Dumont * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/DomNodeList.java b/src/main/java/org/htmlunit/html/DomNodeList.java index 3080c25e5e..50a851abbf 100644 --- a/src/main/java/org/htmlunit/html/DomNodeList.java +++ b/src/main/java/org/htmlunit/html/DomNodeList.java @@ -21,7 +21,7 @@ /** * A list of {@link DomNode}s which is both a W3C {@link NodeList} and a java {@link List}. * - * @author Tom Anderson + * @author Tom Anderson * @param the element type */ public interface DomNodeList extends NodeList, List { diff --git a/src/main/java/org/htmlunit/html/DomText.java b/src/main/java/org/htmlunit/html/DomText.java index a8f9982c4d..3af794f353 100644 --- a/src/main/java/org/htmlunit/html/DomText.java +++ b/src/main/java/org/htmlunit/html/DomText.java @@ -27,7 +27,7 @@ * Representation of a text node in the HTML DOM. * * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Rodney Gitzel * @author Ahmed Ashour * @author Sudhan Moghe diff --git a/src/main/java/org/htmlunit/html/ElementFactory.java b/src/main/java/org/htmlunit/html/ElementFactory.java index e6ba4ce68f..bf1eaffe4e 100644 --- a/src/main/java/org/htmlunit/html/ElementFactory.java +++ b/src/main/java/org/htmlunit/html/ElementFactory.java @@ -20,7 +20,7 @@ /** * Specification of a factory capable of creating {@link DomElement} objects. * - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour */ public interface ElementFactory { diff --git a/src/main/java/org/htmlunit/html/HtmlAddress.java b/src/main/java/org/htmlunit/html/HtmlAddress.java index f8c760e46d..3ef3654944 100644 --- a/src/main/java/org/htmlunit/html/HtmlAddress.java +++ b/src/main/java/org/htmlunit/html/HtmlAddress.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "address". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlAnchor.java b/src/main/java/org/htmlunit/html/HtmlAnchor.java index e30859896e..6cf7560323 100644 --- a/src/main/java/org/htmlunit/html/HtmlAnchor.java +++ b/src/main/java/org/htmlunit/html/HtmlAnchor.java @@ -43,9 +43,9 @@ /** * Wrapper for the HTML element "a". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Dmitri Zoubkov * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlArea.java b/src/main/java/org/htmlunit/html/HtmlArea.java index ee286a0046..6dcf7d7926 100644 --- a/src/main/java/org/htmlunit/html/HtmlArea.java +++ b/src/main/java/org/htmlunit/html/HtmlArea.java @@ -40,9 +40,9 @@ /** * Wrapper for the HTML element "area". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlBase.java b/src/main/java/org/htmlunit/html/HtmlBase.java index 3056fae677..753762e7f8 100644 --- a/src/main/java/org/htmlunit/html/HtmlBase.java +++ b/src/main/java/org/htmlunit/html/HtmlBase.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "base". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlBaseFont.java b/src/main/java/org/htmlunit/html/HtmlBaseFont.java index 77224e41f0..db82d9049f 100644 --- a/src/main/java/org/htmlunit/html/HtmlBaseFont.java +++ b/src/main/java/org/htmlunit/html/HtmlBaseFont.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "basefont". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlBidirectionalOverride.java b/src/main/java/org/htmlunit/html/HtmlBidirectionalOverride.java index 7442adc95e..3400aaf6ff 100644 --- a/src/main/java/org/htmlunit/html/HtmlBidirectionalOverride.java +++ b/src/main/java/org/htmlunit/html/HtmlBidirectionalOverride.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "bdo". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlBlockQuote.java b/src/main/java/org/htmlunit/html/HtmlBlockQuote.java index a68b95825c..7de3e17550 100644 --- a/src/main/java/org/htmlunit/html/HtmlBlockQuote.java +++ b/src/main/java/org/htmlunit/html/HtmlBlockQuote.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "blockquote". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlBody.java b/src/main/java/org/htmlunit/html/HtmlBody.java index 762e03530e..e67033a2dc 100644 --- a/src/main/java/org/htmlunit/html/HtmlBody.java +++ b/src/main/java/org/htmlunit/html/HtmlBody.java @@ -23,9 +23,9 @@ /** * Wrapper for the HTML element "body". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlBreak.java b/src/main/java/org/htmlunit/html/HtmlBreak.java index 95faabb88c..36774be11c 100644 --- a/src/main/java/org/htmlunit/html/HtmlBreak.java +++ b/src/main/java/org/htmlunit/html/HtmlBreak.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "br". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlButton.java b/src/main/java/org/htmlunit/html/HtmlButton.java index 0b06097410..9e5f5b8b26 100644 --- a/src/main/java/org/htmlunit/html/HtmlButton.java +++ b/src/main/java/org/htmlunit/html/HtmlButton.java @@ -35,9 +35,9 @@ /** * Wrapper for the HTML element "button". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Daniel Gredler * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlButtonInput.java b/src/main/java/org/htmlunit/html/HtmlButtonInput.java index 401aaed496..f4e5f0673e 100644 --- a/src/main/java/org/htmlunit/html/HtmlButtonInput.java +++ b/src/main/java/org/htmlunit/html/HtmlButtonInput.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "input" where type is "button". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlCaption.java b/src/main/java/org/htmlunit/html/HtmlCaption.java index 5d24f5eb7c..3e6a972664 100644 --- a/src/main/java/org/htmlunit/html/HtmlCaption.java +++ b/src/main/java/org/htmlunit/html/HtmlCaption.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "caption". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlCenter.java b/src/main/java/org/htmlunit/html/HtmlCenter.java index e7493cb46e..e3e4b29825 100644 --- a/src/main/java/org/htmlunit/html/HtmlCenter.java +++ b/src/main/java/org/htmlunit/html/HtmlCenter.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "center". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlCheckBoxInput.java b/src/main/java/org/htmlunit/html/HtmlCheckBoxInput.java index 2309c933e9..2b7abe39d5 100644 --- a/src/main/java/org/htmlunit/html/HtmlCheckBoxInput.java +++ b/src/main/java/org/htmlunit/html/HtmlCheckBoxInput.java @@ -23,10 +23,10 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Jun Chen - * @author Christian Sell + * @author Jun Chen + * @author Christian Sell * @author Marc Guillemot * @author Mike Bresnahan * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlDefinitionDescription.java b/src/main/java/org/htmlunit/html/HtmlDefinitionDescription.java index 12fbd63545..e9f0c8563e 100644 --- a/src/main/java/org/htmlunit/html/HtmlDefinitionDescription.java +++ b/src/main/java/org/htmlunit/html/HtmlDefinitionDescription.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "dd". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlDefinitionList.java b/src/main/java/org/htmlunit/html/HtmlDefinitionList.java index 2d24cfa603..d64a6735d4 100644 --- a/src/main/java/org/htmlunit/html/HtmlDefinitionList.java +++ b/src/main/java/org/htmlunit/html/HtmlDefinitionList.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "dl". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlDefinitionTerm.java b/src/main/java/org/htmlunit/html/HtmlDefinitionTerm.java index 64511c1c4d..0ed8687c73 100644 --- a/src/main/java/org/htmlunit/html/HtmlDefinitionTerm.java +++ b/src/main/java/org/htmlunit/html/HtmlDefinitionTerm.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "dt". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlDeletedText.java b/src/main/java/org/htmlunit/html/HtmlDeletedText.java index 9cc465b4c1..797f730628 100644 --- a/src/main/java/org/htmlunit/html/HtmlDeletedText.java +++ b/src/main/java/org/htmlunit/html/HtmlDeletedText.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "del". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlDirectory.java b/src/main/java/org/htmlunit/html/HtmlDirectory.java index f65d92fc92..5ffc3833a5 100644 --- a/src/main/java/org/htmlunit/html/HtmlDirectory.java +++ b/src/main/java/org/htmlunit/html/HtmlDirectory.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "dir". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlDivision.java b/src/main/java/org/htmlunit/html/HtmlDivision.java index 716fbe2fb8..de3f21eda6 100644 --- a/src/main/java/org/htmlunit/html/HtmlDivision.java +++ b/src/main/java/org/htmlunit/html/HtmlDivision.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "div". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java b/src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java index 0f6a9a7625..9cd7d0b3b1 100644 --- a/src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java +++ b/src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java @@ -27,7 +27,7 @@ * * @see * DOM-Level-2-Traversal-Range - * @author Mike Dirolf + * @author Mike Dirolf * @author Frank Danek * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlElement.java b/src/main/java/org/htmlunit/html/HtmlElement.java index 8038fc5efd..c02485d824 100644 --- a/src/main/java/org/htmlunit/html/HtmlElement.java +++ b/src/main/java/org/htmlunit/html/HtmlElement.java @@ -58,10 +58,10 @@ /** * An abstract wrapper for HTML elements. * - * @author Mike Bowler - * @author Mike J. Bresnahan + * @author Mike Bowler + * @author Mike J. Bresnahan * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Mike Gallaher * @author Denis N. Antonioli diff --git a/src/main/java/org/htmlunit/html/HtmlFieldSet.java b/src/main/java/org/htmlunit/html/HtmlFieldSet.java index bfe0cc3fde..90d7a807ea 100644 --- a/src/main/java/org/htmlunit/html/HtmlFieldSet.java +++ b/src/main/java/org/htmlunit/html/HtmlFieldSet.java @@ -25,9 +25,9 @@ /** * Wrapper for the HTML element "fieldset". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlFileInput.java b/src/main/java/org/htmlunit/html/HtmlFileInput.java index 5f95299fd6..93b3cf4d30 100644 --- a/src/main/java/org/htmlunit/html/HtmlFileInput.java +++ b/src/main/java/org/htmlunit/html/HtmlFileInput.java @@ -35,8 +35,8 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/html/HtmlFont.java b/src/main/java/org/htmlunit/html/HtmlFont.java index cd9df51805..2d7e043e7a 100644 --- a/src/main/java/org/htmlunit/html/HtmlFont.java +++ b/src/main/java/org/htmlunit/html/HtmlFont.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "font". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Rodney Gitzel * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlForm.java b/src/main/java/org/htmlunit/html/HtmlForm.java index 85b6151688..1fb417a067 100644 --- a/src/main/java/org/htmlunit/html/HtmlForm.java +++ b/src/main/java/org/htmlunit/html/HtmlForm.java @@ -60,10 +60,10 @@ /** * Wrapper for the HTML element "form". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor * @author Brad Clarke - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author George Murnock * @author Kent Tong diff --git a/src/main/java/org/htmlunit/html/HtmlFrame.java b/src/main/java/org/htmlunit/html/HtmlFrame.java index 1759bc89df..d45167edd5 100644 --- a/src/main/java/org/htmlunit/html/HtmlFrame.java +++ b/src/main/java/org/htmlunit/html/HtmlFrame.java @@ -23,9 +23,9 @@ /** * Wrapper for the HTML element "frame". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlFrameSet.java b/src/main/java/org/htmlunit/html/HtmlFrameSet.java index 72373a9520..3b92e295cf 100644 --- a/src/main/java/org/htmlunit/html/HtmlFrameSet.java +++ b/src/main/java/org/htmlunit/html/HtmlFrameSet.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "frameset". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek * @author Ronny Shapiro diff --git a/src/main/java/org/htmlunit/html/HtmlHead.java b/src/main/java/org/htmlunit/html/HtmlHead.java index 1644ec3a37..4704019776 100644 --- a/src/main/java/org/htmlunit/html/HtmlHead.java +++ b/src/main/java/org/htmlunit/html/HtmlHead.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "head". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading1.java b/src/main/java/org/htmlunit/html/HtmlHeading1.java index e5eeefb519..3ebf3d2f50 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading1.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading1.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h1". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading2.java b/src/main/java/org/htmlunit/html/HtmlHeading2.java index e3524b607f..06aad3be01 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading2.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading2.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h2". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading3.java b/src/main/java/org/htmlunit/html/HtmlHeading3.java index fdcf4f0ab1..d748449ddc 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading3.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading3.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h3". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading4.java b/src/main/java/org/htmlunit/html/HtmlHeading4.java index 9755347b3f..b089746ca2 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading4.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading4.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h4". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading5.java b/src/main/java/org/htmlunit/html/HtmlHeading5.java index 14d26988ca..888a593cea 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading5.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading5.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h5". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHeading6.java b/src/main/java/org/htmlunit/html/HtmlHeading6.java index bf58517295..727ccfa79b 100644 --- a/src/main/java/org/htmlunit/html/HtmlHeading6.java +++ b/src/main/java/org/htmlunit/html/HtmlHeading6.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "h6". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlHiddenInput.java b/src/main/java/org/htmlunit/html/HtmlHiddenInput.java index ed3cc0e36c..db13fb8528 100644 --- a/src/main/java/org/htmlunit/html/HtmlHiddenInput.java +++ b/src/main/java/org/htmlunit/html/HtmlHiddenInput.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "input" of type "hidden". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Daniel Gredler * @author Marc Guillemot * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlHorizontalRule.java b/src/main/java/org/htmlunit/html/HtmlHorizontalRule.java index 2495a7cd55..3778f150a4 100644 --- a/src/main/java/org/htmlunit/html/HtmlHorizontalRule.java +++ b/src/main/java/org/htmlunit/html/HtmlHorizontalRule.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "hr". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlImage.java b/src/main/java/org/htmlunit/html/HtmlImage.java index ec90e4aa4f..1955a7eba9 100644 --- a/src/main/java/org/htmlunit/html/HtmlImage.java +++ b/src/main/java/org/htmlunit/html/HtmlImage.java @@ -55,11 +55,11 @@ /** * Wrapper for the HTML element "img". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour - * @author Knut Johannes Dahle + * @author Knut Johannes Dahle * @author Ronald Brill * @author Frank Danek * @author Carsten Steul diff --git a/src/main/java/org/htmlunit/html/HtmlImageInput.java b/src/main/java/org/htmlunit/html/HtmlImageInput.java index e9c7b0f913..fcbf85ab0c 100644 --- a/src/main/java/org/htmlunit/html/HtmlImageInput.java +++ b/src/main/java/org/htmlunit/html/HtmlImageInput.java @@ -38,9 +38,9 @@ * Wrapper for the HTML element "input". * HtmlUnit does not download the associated image for performance reasons. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Daniel Gredler * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlInlineFrame.java b/src/main/java/org/htmlunit/html/HtmlInlineFrame.java index d700d07815..4646d94bd4 100644 --- a/src/main/java/org/htmlunit/html/HtmlInlineFrame.java +++ b/src/main/java/org/htmlunit/html/HtmlInlineFrame.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "iframe". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlInlineQuotation.java b/src/main/java/org/htmlunit/html/HtmlInlineQuotation.java index 3197d7a7df..0c74dfa2f8 100644 --- a/src/main/java/org/htmlunit/html/HtmlInlineQuotation.java +++ b/src/main/java/org/htmlunit/html/HtmlInlineQuotation.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "q". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlInput.java b/src/main/java/org/htmlunit/html/HtmlInput.java index 5cabcfdb7f..3473b74ac8 100644 --- a/src/main/java/org/htmlunit/html/HtmlInput.java +++ b/src/main/java/org/htmlunit/html/HtmlInput.java @@ -48,9 +48,9 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Marc Guillemot * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlInsertedText.java b/src/main/java/org/htmlunit/html/HtmlInsertedText.java index 3f65a4d2e3..d19523338a 100644 --- a/src/main/java/org/htmlunit/html/HtmlInsertedText.java +++ b/src/main/java/org/htmlunit/html/HtmlInsertedText.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "ins". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlLabel.java b/src/main/java/org/htmlunit/html/HtmlLabel.java index 7ab63990ef..3e3ff7b5b0 100644 --- a/src/main/java/org/htmlunit/html/HtmlLabel.java +++ b/src/main/java/org/htmlunit/html/HtmlLabel.java @@ -25,9 +25,9 @@ /** * Wrapper for the HTML element "label". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlLegend.java b/src/main/java/org/htmlunit/html/HtmlLegend.java index 4eaa2c826f..a21e0e1b25 100644 --- a/src/main/java/org/htmlunit/html/HtmlLegend.java +++ b/src/main/java/org/htmlunit/html/HtmlLegend.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "legend". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlLink.java b/src/main/java/org/htmlunit/html/HtmlLink.java index 481afdc3e3..58b0dd33bb 100644 --- a/src/main/java/org/htmlunit/html/HtmlLink.java +++ b/src/main/java/org/htmlunit/html/HtmlLink.java @@ -43,9 +43,9 @@ * Wrapper for the HTML element "link". Note: This is not a clickable link, * that one is an HtmlAnchor * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Marc Guillemot * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlListItem.java b/src/main/java/org/htmlunit/html/HtmlListItem.java index 05ce4b5f96..a764bc74e7 100644 --- a/src/main/java/org/htmlunit/html/HtmlListItem.java +++ b/src/main/java/org/htmlunit/html/HtmlListItem.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "li". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlMap.java b/src/main/java/org/htmlunit/html/HtmlMap.java index bb248b3b4e..d7a7f2638f 100644 --- a/src/main/java/org/htmlunit/html/HtmlMap.java +++ b/src/main/java/org/htmlunit/html/HtmlMap.java @@ -22,9 +22,9 @@ /** * Wrapper for the HTML element "map". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlMenu.java b/src/main/java/org/htmlunit/html/HtmlMenu.java index 4a920511bb..8e5813c83f 100644 --- a/src/main/java/org/htmlunit/html/HtmlMenu.java +++ b/src/main/java/org/htmlunit/html/HtmlMenu.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "menu". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlMeta.java b/src/main/java/org/htmlunit/html/HtmlMeta.java index cb73a6ce15..a3cd0b0b69 100644 --- a/src/main/java/org/htmlunit/html/HtmlMeta.java +++ b/src/main/java/org/htmlunit/html/HtmlMeta.java @@ -23,8 +23,8 @@ /** * Wrapper for the HTML element "meta". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlNoFrames.java b/src/main/java/org/htmlunit/html/HtmlNoFrames.java index 928fe6b59f..2dd1129adf 100644 --- a/src/main/java/org/htmlunit/html/HtmlNoFrames.java +++ b/src/main/java/org/htmlunit/html/HtmlNoFrames.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "noframes". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Marc Guillemot * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlNoScript.java b/src/main/java/org/htmlunit/html/HtmlNoScript.java index 87cc03590e..f3cc632c5b 100644 --- a/src/main/java/org/htmlunit/html/HtmlNoScript.java +++ b/src/main/java/org/htmlunit/html/HtmlNoScript.java @@ -23,9 +23,9 @@ /** * Wrapper for the HTML element "noscript". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlObject.java b/src/main/java/org/htmlunit/html/HtmlObject.java index e1464ff900..f077a86240 100644 --- a/src/main/java/org/htmlunit/html/HtmlObject.java +++ b/src/main/java/org/htmlunit/html/HtmlObject.java @@ -26,9 +26,9 @@ /** * Wrapper for the HTML element "object". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlOption.java b/src/main/java/org/htmlunit/html/HtmlOption.java index c0dda178ab..06c9556a84 100644 --- a/src/main/java/org/htmlunit/html/HtmlOption.java +++ b/src/main/java/org/htmlunit/html/HtmlOption.java @@ -28,9 +28,9 @@ /** * Wrapper for the HTML element "option". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Marc Guillemot * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlOptionGroup.java b/src/main/java/org/htmlunit/html/HtmlOptionGroup.java index a37dd3ba01..50963b1e2f 100644 --- a/src/main/java/org/htmlunit/html/HtmlOptionGroup.java +++ b/src/main/java/org/htmlunit/html/HtmlOptionGroup.java @@ -22,9 +22,9 @@ /** * Wrapper for the HTML element "optgroup". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Ahmed Ashour * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlOrderedList.java b/src/main/java/org/htmlunit/html/HtmlOrderedList.java index 25e20d1c08..bf64019dab 100644 --- a/src/main/java/org/htmlunit/html/HtmlOrderedList.java +++ b/src/main/java/org/htmlunit/html/HtmlOrderedList.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "ol". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlPage.java b/src/main/java/org/htmlunit/html/HtmlPage.java index ac4298613f..b5d236be33 100644 --- a/src/main/java/org/htmlunit/html/HtmlPage.java +++ b/src/main/java/org/htmlunit/html/HtmlPage.java @@ -117,12 +117,12 @@ * *

* - * @author Mike Bowler + * @author Mike Bowler * @author Alex Nikiforoff * @author Noboru Sinohara * @author David K. Taylor * @author Andreas Hangler - * @author Christian Sell + * @author Christian Sell * @author Chris Erskine * @author Marc Guillemot * @author Ahmed Ashour @@ -130,7 +130,7 @@ * @author Dmitri Zoubkov * @author Sudhan Moghe * @author Ethan Glasser-Camp - * @author Tom Anderson + * @author Tom Anderson * @author Ronald Brill * @author Frank Danek * @author Joerg Werner diff --git a/src/main/java/org/htmlunit/html/HtmlParagraph.java b/src/main/java/org/htmlunit/html/HtmlParagraph.java index c8e4cd21f4..d9ce33c9c5 100644 --- a/src/main/java/org/htmlunit/html/HtmlParagraph.java +++ b/src/main/java/org/htmlunit/html/HtmlParagraph.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "p". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Rodney Gitzel * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlParameter.java b/src/main/java/org/htmlunit/html/HtmlParameter.java index c44aedaa1c..1029a47a53 100644 --- a/src/main/java/org/htmlunit/html/HtmlParameter.java +++ b/src/main/java/org/htmlunit/html/HtmlParameter.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "param". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlPasswordInput.java b/src/main/java/org/htmlunit/html/HtmlPasswordInput.java index 4e07ac633b..086899cbff 100644 --- a/src/main/java/org/htmlunit/html/HtmlPasswordInput.java +++ b/src/main/java/org/htmlunit/html/HtmlPasswordInput.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlPreformattedText.java b/src/main/java/org/htmlunit/html/HtmlPreformattedText.java index 265711cdbc..072e14e069 100644 --- a/src/main/java/org/htmlunit/html/HtmlPreformattedText.java +++ b/src/main/java/org/htmlunit/html/HtmlPreformattedText.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "pre". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlRadioButtonInput.java b/src/main/java/org/htmlunit/html/HtmlRadioButtonInput.java index d0eeb72b17..cc0d1d591d 100644 --- a/src/main/java/org/htmlunit/html/HtmlRadioButtonInput.java +++ b/src/main/java/org/htmlunit/html/HtmlRadioButtonInput.java @@ -25,9 +25,9 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Marc Guillemot * @author Mike Bresnahan * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlResetInput.java b/src/main/java/org/htmlunit/html/HtmlResetInput.java index d7623a39f0..cfb0a7cdbc 100644 --- a/src/main/java/org/htmlunit/html/HtmlResetInput.java +++ b/src/main/java/org/htmlunit/html/HtmlResetInput.java @@ -22,9 +22,9 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlScript.java b/src/main/java/org/htmlunit/html/HtmlScript.java index 3c9cdec7d1..03a3fc379a 100644 --- a/src/main/java/org/htmlunit/html/HtmlScript.java +++ b/src/main/java/org/htmlunit/html/HtmlScript.java @@ -32,8 +32,8 @@ * (i.e. document.write("<span id='mySpan'/>"); document.getElementById("mySpan").tagName; * can't work with a filter). * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Marc Guillemot * @author David K. Taylor * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlSelect.java b/src/main/java/org/htmlunit/html/HtmlSelect.java index 5c3b99a774..a72f1c359b 100644 --- a/src/main/java/org/htmlunit/html/HtmlSelect.java +++ b/src/main/java/org/htmlunit/html/HtmlSelect.java @@ -36,10 +36,10 @@ /** * Wrapper for the HTML element "select". * - * @author Mike Bowler - * @author Mike J. Bresnahan + * @author Mike Bowler + * @author Mike J. Bresnahan * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Marc Guillemot * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlSpan.java b/src/main/java/org/htmlunit/html/HtmlSpan.java index abf2243c01..af08d48d03 100644 --- a/src/main/java/org/htmlunit/html/HtmlSpan.java +++ b/src/main/java/org/htmlunit/html/HtmlSpan.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "span". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Rodney Gitzel * @author Sudhan Moghe diff --git a/src/main/java/org/htmlunit/html/HtmlStyle.java b/src/main/java/org/htmlunit/html/HtmlStyle.java index d450ea6bab..4a069092a1 100644 --- a/src/main/java/org/htmlunit/html/HtmlStyle.java +++ b/src/main/java/org/htmlunit/html/HtmlStyle.java @@ -29,8 +29,8 @@ /** * Wrapper for the HTML element "style". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Marc Guillemot * @author Ahmed Ashour * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlSubmitInput.java b/src/main/java/org/htmlunit/html/HtmlSubmitInput.java index 3c1067d378..be7078602d 100644 --- a/src/main/java/org/htmlunit/html/HtmlSubmitInput.java +++ b/src/main/java/org/htmlunit/html/HtmlSubmitInput.java @@ -25,9 +25,9 @@ /** * Wrapper for the HTML element "input". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/html/HtmlTable.java b/src/main/java/org/htmlunit/html/HtmlTable.java index 9d62e33c80..d7e4c824a3 100644 --- a/src/main/java/org/htmlunit/html/HtmlTable.java +++ b/src/main/java/org/htmlunit/html/HtmlTable.java @@ -28,9 +28,9 @@ /** * Wrapper for the HTML element "table". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableBody.java b/src/main/java/org/htmlunit/html/HtmlTableBody.java index 6febca3b57..902b2dc465 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableBody.java +++ b/src/main/java/org/htmlunit/html/HtmlTableBody.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "tbody". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableCell.java b/src/main/java/org/htmlunit/html/HtmlTableCell.java index 591a495729..59447d98c8 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableCell.java +++ b/src/main/java/org/htmlunit/html/HtmlTableCell.java @@ -22,9 +22,9 @@ /** * An abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek * @author Lai Quang Duong diff --git a/src/main/java/org/htmlunit/html/HtmlTableColumn.java b/src/main/java/org/htmlunit/html/HtmlTableColumn.java index 41b6376195..a974fd6ef1 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableColumn.java +++ b/src/main/java/org/htmlunit/html/HtmlTableColumn.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "col". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableColumnGroup.java b/src/main/java/org/htmlunit/html/HtmlTableColumnGroup.java index ac92ea5e2f..0e965e4d7d 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableColumnGroup.java +++ b/src/main/java/org/htmlunit/html/HtmlTableColumnGroup.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "colgroup". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableDataCell.java b/src/main/java/org/htmlunit/html/HtmlTableDataCell.java index 65693e08c7..3871c75632 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableDataCell.java +++ b/src/main/java/org/htmlunit/html/HtmlTableDataCell.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "td". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlTableFooter.java b/src/main/java/org/htmlunit/html/HtmlTableFooter.java index 38141b21ab..3fbc9a21be 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableFooter.java +++ b/src/main/java/org/htmlunit/html/HtmlTableFooter.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "tfoot". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableHeader.java b/src/main/java/org/htmlunit/html/HtmlTableHeader.java index f53cdad68b..ef04a08f5b 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableHeader.java +++ b/src/main/java/org/htmlunit/html/HtmlTableHeader.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "thead". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTableHeaderCell.java b/src/main/java/org/htmlunit/html/HtmlTableHeaderCell.java index 40514eb6bc..8dd2313dc4 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableHeaderCell.java +++ b/src/main/java/org/htmlunit/html/HtmlTableHeaderCell.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML "th" tag. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/HtmlTableRow.java b/src/main/java/org/htmlunit/html/HtmlTableRow.java index 0afdd5f95a..6d2b6d1a94 100644 --- a/src/main/java/org/htmlunit/html/HtmlTableRow.java +++ b/src/main/java/org/htmlunit/html/HtmlTableRow.java @@ -26,9 +26,9 @@ /** * Wrapper for the HTML element "tr". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Ronald Brill * @author Frank Danek diff --git a/src/main/java/org/htmlunit/html/HtmlTextArea.java b/src/main/java/org/htmlunit/html/HtmlTextArea.java index 8b32425c04..8bb9afbbd7 100644 --- a/src/main/java/org/htmlunit/html/HtmlTextArea.java +++ b/src/main/java/org/htmlunit/html/HtmlTextArea.java @@ -32,10 +32,10 @@ /** * Wrapper for the HTML element "textarea". * - * @author Mike Bowler - * @author Barnaby Court + * @author Mike Bowler + * @author Barnaby Court * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author David D. Kilzer * @author Marc Guillemot * @author Daniel Gredler diff --git a/src/main/java/org/htmlunit/html/HtmlTextInput.java b/src/main/java/org/htmlunit/html/HtmlTextInput.java index a50abdd957..8159702abc 100644 --- a/src/main/java/org/htmlunit/html/HtmlTextInput.java +++ b/src/main/java/org/htmlunit/html/HtmlTextInput.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "input" with type="text". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Daniel Gredler * @author Ahmed Ashour * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/html/HtmlTitle.java b/src/main/java/org/htmlunit/html/HtmlTitle.java index fc04a5c0b8..4adbd973e9 100644 --- a/src/main/java/org/htmlunit/html/HtmlTitle.java +++ b/src/main/java/org/htmlunit/html/HtmlTitle.java @@ -21,8 +21,8 @@ /** * Wrapper for the HTML element "title". * - * @author Mike Bowler - * @author Christian Sell + * @author Mike Bowler + * @author Christian Sell * @author Chris Erskine * @author Marc Guillemot * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/HtmlUnknownElement.java b/src/main/java/org/htmlunit/html/HtmlUnknownElement.java index 0cd1dd74ea..5cc1b081f6 100644 --- a/src/main/java/org/htmlunit/html/HtmlUnknownElement.java +++ b/src/main/java/org/htmlunit/html/HtmlUnknownElement.java @@ -24,9 +24,9 @@ /** * An element that is returned for an HTML tag that is not supported by this framework. * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Rodney Gitzel * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/HtmlUnorderedList.java b/src/main/java/org/htmlunit/html/HtmlUnorderedList.java index e12a0904b3..bff37df216 100644 --- a/src/main/java/org/htmlunit/html/HtmlUnorderedList.java +++ b/src/main/java/org/htmlunit/html/HtmlUnorderedList.java @@ -21,9 +21,9 @@ /** * Wrapper for the HTML element "ul". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Frank Danek */ diff --git a/src/main/java/org/htmlunit/html/SiblingDomNodeList.java b/src/main/java/org/htmlunit/html/SiblingDomNodeList.java index b864693af4..ebd9b3148a 100644 --- a/src/main/java/org/htmlunit/html/SiblingDomNodeList.java +++ b/src/main/java/org/htmlunit/html/SiblingDomNodeList.java @@ -23,7 +23,7 @@ /** * An implementation of DomNodeList that is much less expensive for iteration. * - * @author Tom Anderson + * @author Tom Anderson */ class SiblingDomNodeList extends AbstractSequentialList implements DomNodeList { diff --git a/src/main/java/org/htmlunit/html/SubmittableElement.java b/src/main/java/org/htmlunit/html/SubmittableElement.java index b913146e4f..90ad86f8d9 100644 --- a/src/main/java/org/htmlunit/html/SubmittableElement.java +++ b/src/main/java/org/htmlunit/html/SubmittableElement.java @@ -19,7 +19,7 @@ /** * An element that can have it's values sent to the server during a form submit. * - * @author Mike Bowler + * @author Mike Bowler * @author Daniel Gredler */ public interface SubmittableElement { diff --git a/src/main/java/org/htmlunit/html/TableRowGroup.java b/src/main/java/org/htmlunit/html/TableRowGroup.java index c1befc1260..6f8633ad0d 100644 --- a/src/main/java/org/htmlunit/html/TableRowGroup.java +++ b/src/main/java/org/htmlunit/html/TableRowGroup.java @@ -23,9 +23,9 @@ /** * Superclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot". * - * @author Mike Bowler + * @author Mike Bowler * @author David K. Taylor - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author Daniel Gredler * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/UnknownElementFactory.java b/src/main/java/org/htmlunit/html/UnknownElementFactory.java index 4ecff7bab4..5c81a242a0 100644 --- a/src/main/java/org/htmlunit/html/UnknownElementFactory.java +++ b/src/main/java/org/htmlunit/html/UnknownElementFactory.java @@ -23,7 +23,7 @@ * A factory for elements encountered in parsing the input which are not represented * by dedicated element classes. * - * @author Christian Sell + * @author Christian Sell * @author Ahmed Ashour * @author David K. Taylor * @author Ronald Brill diff --git a/src/main/java/org/htmlunit/html/parser/HTMLParser.java b/src/main/java/org/htmlunit/html/parser/HTMLParser.java index 9df2e78253..c661097090 100644 --- a/src/main/java/org/htmlunit/html/parser/HTMLParser.java +++ b/src/main/java/org/htmlunit/html/parser/HTMLParser.java @@ -27,7 +27,7 @@ /** *

Interface for the parser used to parse HTML into a HtmlUnit-specific DOM (HU-DOM) tree.

* - * @author Christian Sell + * @author Christian Sell * @author David K. Taylor * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/parser/HTMLParserDOMBuilder.java b/src/main/java/org/htmlunit/html/parser/HTMLParserDOMBuilder.java index c12143e4a9..f1fcb52377 100644 --- a/src/main/java/org/htmlunit/html/parser/HTMLParserDOMBuilder.java +++ b/src/main/java/org/htmlunit/html/parser/HTMLParserDOMBuilder.java @@ -19,7 +19,7 @@ * *

Interface for the parser.

* - * @author Christian Sell + * @author Christian Sell * @author David K. Taylor * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java b/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java index 4241ac1394..cd61bd95e6 100644 --- a/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java +++ b/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java @@ -79,7 +79,7 @@ * the ContentHandler interface. Thus all parser APIs are kept private. The ContentHandler methods * consume SAX events to build the page DOM * - * @author Christian Sell + * @author Christian Sell * @author David K. Taylor * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoHtmlParser.java b/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoHtmlParser.java index 89e5d3fbea..24c79cb8ea 100644 --- a/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoHtmlParser.java +++ b/src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoHtmlParser.java @@ -56,7 +56,7 @@ *

SAX parser implementation that uses the NekoHTML {@link org.htmlunit.cyberneko.HTMLConfiguration} * to parse HTML into a HtmlUnit-specific DOM (HU-DOM) tree.

* - * @author Christian Sell + * @author Christian Sell * @author David K. Taylor * @author Chris Erskine * @author Ahmed Ashour diff --git a/src/main/java/org/htmlunit/httpclient/HtmlUnitBrowserCompatCookieSpec.java b/src/main/java/org/htmlunit/httpclient/HtmlUnitBrowserCompatCookieSpec.java index fce1220057..977ce63d5d 100644 --- a/src/main/java/org/htmlunit/httpclient/HtmlUnitBrowserCompatCookieSpec.java +++ b/src/main/java/org/htmlunit/httpclient/HtmlUnitBrowserCompatCookieSpec.java @@ -56,7 +56,7 @@ * Implementation is based on the HttpClient code. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author David D. Kilzer * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/httpclient/HtmlUnitExpiresHandler.java b/src/main/java/org/htmlunit/httpclient/HtmlUnitExpiresHandler.java index 733632c4e3..7920982320 100644 --- a/src/main/java/org/htmlunit/httpclient/HtmlUnitExpiresHandler.java +++ b/src/main/java/org/htmlunit/httpclient/HtmlUnitExpiresHandler.java @@ -28,7 +28,7 @@ /** * Customized BasicExpiresHandler for HtmlUnit. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author David D. Kilzer * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/httpclient/HtmlUnitHttpOnlyHandler.java b/src/main/java/org/htmlunit/httpclient/HtmlUnitHttpOnlyHandler.java index ea38eba236..542ad79a7f 100644 --- a/src/main/java/org/htmlunit/httpclient/HtmlUnitHttpOnlyHandler.java +++ b/src/main/java/org/htmlunit/httpclient/HtmlUnitHttpOnlyHandler.java @@ -24,7 +24,7 @@ /** * Customized CookieAttributeHandler for handling of the httponly attribute. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author David D. Kilzer * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/httpclient/HtmlUnitPathHandler.java b/src/main/java/org/htmlunit/httpclient/HtmlUnitPathHandler.java index ec1385557a..9cbe9bc0fa 100644 --- a/src/main/java/org/htmlunit/httpclient/HtmlUnitPathHandler.java +++ b/src/main/java/org/htmlunit/httpclient/HtmlUnitPathHandler.java @@ -22,7 +22,7 @@ /** * Customized BasicPathHandler for HtmlUnit. * - * @author Mike Bowler + * @author Mike Bowler * @author Noboru Sinohara * @author David D. Kilzer * @author Marc Guillemot diff --git a/src/main/java/org/htmlunit/javascript/AbstractJavaScriptEngine.java b/src/main/java/org/htmlunit/javascript/AbstractJavaScriptEngine.java index 29a558c608..fffde2ef76 100644 --- a/src/main/java/org/htmlunit/javascript/AbstractJavaScriptEngine.java +++ b/src/main/java/org/htmlunit/javascript/AbstractJavaScriptEngine.java @@ -25,11 +25,11 @@ * * @param