Skip to content

Commit 865005b

Browse files
committed
take care 'global' is not available
1 parent 9c21927 commit 865005b

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

src/test/java/org/htmlunit/general/DedicatedWorkerGlobalScopeClassNameTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10134,4 +10134,13 @@ public void abortController() throws Exception {
1013410134
public void abortSignal() throws Exception {
1013510135
test("AbortSignal");
1013610136
}
10137+
10138+
/**
10139+
* @throws Exception if an error occurs
10140+
*/
10141+
@Test
10142+
@Alerts("ReferenceError")
10143+
public void global() throws Exception {
10144+
test("global");
10145+
}
1013710146
}

src/test/java/org/htmlunit/general/DedicatedWorkerGlobalScopeTypeOfTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10133,4 +10133,13 @@ public void abortController() throws Exception {
1013310133
public void abortSignal() throws Exception {
1013410134
test("AbortSignal");
1013510135
}
10136+
10137+
/**
10138+
* @throws Exception if an error occurs
10139+
*/
10140+
@Test
10141+
@Alerts("undefined")
10142+
public void global() throws Exception {
10143+
test("global");
10144+
}
1013610145
}

src/test/java/org/htmlunit/general/HostClassNameTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10266,4 +10266,13 @@ public void abortController() throws Exception {
1026610266
public void abortSignal() throws Exception {
1026710267
test("AbortSignal");
1026810268
}
10269+
10270+
/**
10271+
* @throws Exception if an error occurs
10272+
*/
10273+
@Test
10274+
@Alerts("ReferenceError")
10275+
public void global() throws Exception {
10276+
test("global");
10277+
}
1026910278
}

src/test/java/org/htmlunit/general/HostTypeOfTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10246,4 +10246,13 @@ public void abortController() throws Exception {
1024610246
public void abortSignal() throws Exception {
1024710247
test("AbortSignal");
1024810248
}
10249+
10250+
/**
10251+
* @throws Exception if an error occurs
10252+
*/
10253+
@Test
10254+
@Alerts("undefined")
10255+
public void global() throws Exception {
10256+
test("global");
10257+
}
1024910258
}

0 commit comments

Comments
 (0)