Skip to content

Commit 49ce958

Browse files
committed
chore: update classname
1 parent 47dc0f4 commit 49ce958

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

test-app/app/src/main/assets/app/tests/testURLImpl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
describe("Test URLImpl ", function () {
1+
describe("Test URL ", function () {
22

33
it("Test invalid URL parsing", function(){
44
var exceptionCaught = false;
55
try {
6-
const url = new URLImpl('');
6+
const url = new URL('');
77
}catch(e){
88
exceptionCaught = true;
99
}
@@ -13,7 +13,7 @@ var exceptionCaught = false;
1313
it("Test valid URL parsing", function(){
1414
var exceptionCaught = false;
1515
try {
16-
const url = new URLImpl('https://google.com');
16+
const url = new URL('https://google.com');
1717
}catch(e){
1818
exceptionCaught = true;
1919
}
@@ -23,7 +23,7 @@ var exceptionCaught = false;
2323

2424
it("Test URL fields", function(){
2525
var exceptionCaught = false;
26-
const url = new URLImpl('https://google.com');
26+
const url = new URL('https://google.com');
2727
expect(url.protocol).toBe('https:');
2828
expect(url.hostname).toBe('google.com');
2929
});

test-app/app/src/main/assets/app/tests/testURLSearchParamsImpl.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
describe("Test URLSearchParamsImpl ", function () {
1+
describe("Test URLSearchParams ", function () {
22

33

4-
it("Test URLSearchParamsImpl keys", function(){
5-
const params = new URLSearchParamsImpl("foo=1&bar=2");
4+
it("Test URLSearchParams keys", function(){
5+
const params = new URLSearchParams("foo=1&bar=2");
66
const keys = params.keys();
77
expect(keys[0]).toBe("foo");
88
expect(keys[1]).toBe("bar");
99
});
1010

11-
it("Test URLSearchParamsImpl values", function(){
12-
const params = new URLSearchParamsImpl("foo=1&bar=2");
11+
it("Test URLSearchParams values", function(){
12+
const params = new URLSearchParams("foo=1&bar=2");
1313
const values = params.values();
1414
expect(values[0]).toBe("1");
1515
expect(values[1]).toBe("2");
1616
});
1717

1818

19-
it("Test URLSearchParamsImpl entries", function(){
20-
const params = new URLSearchParamsImpl("foo=1&bar=2");
19+
it("Test URLSearchParams entries", function(){
20+
const params = new URLSearchParams("foo=1&bar=2");
2121
const entries = params.entries();
2222
expect(entries[0][0]).toBe("foo");
2323
expect(entries[0][1]).toBe("1");
@@ -28,28 +28,28 @@ expect(entries[1][1]).toBe("2");
2828
});
2929

3030

31-
it("Test URLSearchParamsImpl size", function(){
32-
const params = new URLSearchParamsImpl("foo=1&bar=2");
31+
it("Test URLSearchParams size", function(){
32+
const params = new URLSearchParams("foo=1&bar=2");
3333
expect(params.size).toBe(2);
3434
});
3535

36-
it("Test URLSearchParamsImpl append", function(){
37-
const params = new URLSearchParamsImpl("foo=1&bar=2");
36+
it("Test URLSearchParams append", function(){
37+
const params = new URLSearchParams("foo=1&bar=2");
3838
params.append("first", "Osei");
3939
expect(params.get("first")).toBe("Osei");
4040
});
4141

4242

43-
it("Test URLSearchParamsImpl delete", function(){
44-
const params = new URLSearchParamsImpl("foo=1&bar=2");
43+
it("Test URLSearchParams delete", function(){
44+
const params = new URLSearchParams("foo=1&bar=2");
4545
params.append("first", "Osei");
4646
params.delete("first");
4747
expect(params.get("first")).toBe(undefined);
4848
});
4949

5050

51-
it("Test URLSearchParamsImpl has", function(){
52-
const params = new URLSearchParamsImpl("foo=1&bar=2");
51+
it("Test URLSearchParams has", function(){
52+
const params = new URLSearchParams("foo=1&bar=2");
5353
expect(params.has("foo")).toBe(true);
5454
});
5555

0 commit comments

Comments
 (0)