@angular-wave/angular.ts 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/angular-ts.esm.js +1 -1
  2. package/dist/angular-ts.umd.js +1 -1
  3. package/package.json +1 -1
  4. package/playwright.config.ts +1 -1
  5. package/src/angular.spec.js +6 -6
  6. package/src/animations/animate-css-driver.js +1 -1
  7. package/src/animations/animate-queue.js +1 -1
  8. package/src/animations/animation.js +1 -1
  9. package/src/animations/shared.js +1 -1
  10. package/src/binding.spec.js +4 -4
  11. package/src/core/animate/animate.js +1 -1
  12. package/src/core/compile/compile.js +1 -1
  13. package/src/core/compile/compile.spec.js +1 -1
  14. package/src/core/document.spec.js +1 -1
  15. package/src/core/location/location.js +2 -2
  16. package/src/core/prop.spec.js +1 -1
  17. package/src/core/root-element.spec.js +1 -1
  18. package/src/core/sce/sce.js +1 -1
  19. package/src/directive/attrs/attrs.js +1 -1
  20. package/src/directive/attrs/attrs.spec.js +1 -1
  21. package/src/directive/attrs/boolean.spec.js +1 -1
  22. package/src/directive/attrs/element-style.spec.js +1 -1
  23. package/src/directive/attrs/src.html +18 -0
  24. package/src/directive/attrs/src.spec.js +1 -1
  25. package/src/directive/attrs/{srcset.test.js → src.test.js} +1 -1
  26. package/src/directive/bind/bind.spec.js +1 -1
  27. package/src/directive/change/change.spec.js +1 -1
  28. package/src/directive/class/class.spec.js +1 -2
  29. package/src/directive/cloak/cloak.spec.js +1 -1
  30. package/src/directive/controller/controller.spec.js +1 -1
  31. package/src/directive/events/click.spec.js +1 -1
  32. package/src/directive/events/event.spec.js +1 -1
  33. package/src/directive/form/form.spec.js +1 -1
  34. package/src/directive/if/if.js +3 -1
  35. package/src/directive/if/if.spec.js +1 -1
  36. package/src/directive/include/include.js +1 -1
  37. package/src/directive/include/include.spec.js +1 -1
  38. package/src/directive/init/init.spec.js +1 -1
  39. package/src/directive/input/input.spec.js +1 -1
  40. package/src/directive/list/list.spec.js +1 -1
  41. package/src/directive/model/model.js +1 -1
  42. package/src/directive/model/model.spec.js +1 -1
  43. package/src/directive/model-options/model-options.spec.js +1 -1
  44. package/src/directive/non-bindable/non-bindable.spec.js +1 -1
  45. package/src/directive/options/options.js +1 -1
  46. package/src/directive/options/options.spec.js +1 -1
  47. package/src/directive/ref/href.spec.js +1 -1
  48. package/src/directive/repeat/repeat.js +1 -1
  49. package/src/directive/repeat/repeat.spec.js +1 -1
  50. package/src/directive/script/script.spec.js +1 -1
  51. package/src/directive/select/select.js +1 -1
  52. package/src/directive/select/select.spec.js +1 -1
  53. package/src/directive/show-hide/show-hide.spec.js +1 -1
  54. package/src/directive/style/style.spec.js +1 -1
  55. package/src/directive/switch/switch.js +1 -1
  56. package/src/directive/switch/switch.spec.js +1 -1
  57. package/src/directive/transclude/transclude.js +1 -1
  58. package/src/directive/validators/validators.js +1 -1
  59. package/src/directive/validators/validators.spec.js +1 -1
  60. package/src/exts/aria/aria.html +18 -0
  61. package/src/exts/{aria.js → aria/aria.js} +1 -1
  62. package/src/exts/{aria.spec.js → aria/aria.spec.js} +1 -1
  63. package/src/exts/aria/aria.test.js +11 -0
  64. package/src/exts/messages/messages.html +18 -0
  65. package/src/exts/{messages.js → messages/messages.js} +1 -1
  66. package/src/exts/{messages.spec.js → messages/messages.spec.js} +2 -2
  67. package/src/exts/messages/messages.test.js +11 -0
  68. package/src/filters/filter.spec.js +1 -1
  69. package/src/filters/limit-to.spec.js +1 -1
  70. package/src/injector.spec.js +4 -4
  71. package/src/loader.js +1 -1
  72. package/src/public.js +2 -2
  73. package/src/public.spec.js +2 -2
  74. package/src/router/common/glob.html +18 -0
  75. package/src/router/common/glob.test.js +1 -1
  76. package/src/router/directives/directives.test.js +19 -0
  77. package/src/router/directives/state-directives.html +21 -0
  78. package/src/router/{state-directives.spec.js → directives/state-directives.spec.js} +3 -2
  79. package/src/router/directives/view-directive.js +1 -1
  80. package/src/router/{view-directive.spec.js → directives/view-directive.spec.js} +3 -2
  81. package/src/router/directives/view-directives.html +21 -0
  82. package/src/router/router.html +22 -0
  83. package/src/router/router.test.js +11 -0
  84. package/src/router/services.spec.js +2 -2
  85. package/src/router/{state-builder.spec.js → state/state-builder.spec.js} +9 -12
  86. package/src/router/state/state.html +22 -0
  87. package/src/router/{state.spec.js → state/state.spec.js} +2 -2
  88. package/src/router/state/state.test.js +11 -0
  89. package/src/router/state-filter.spec.js +2 -2
  90. package/src/router/template-factory.spec.js +4 -4
  91. package/src/router/{url-service.spec.js → url/url-service.spec.js} +1 -1
  92. package/src/router/url/url.html +18 -0
  93. package/src/router/url/url.test.js +11 -0
  94. package/src/router/view/view.html +18 -0
  95. package/src/router/{view.spec.js → view/view.spec.js} +2 -2
  96. package/src/router/view/view.test.js +11 -0
  97. package/src/router/view-hook.spec.js +4 -4
  98. package/src/router/view-scroll.spec.js +4 -4
  99. package/src/services/browser.js +1 -1
  100. package/src/services/document.js +1 -1
  101. package/src/services/http/http.html +22 -0
  102. package/src/services/http/http.test.js +11 -0
  103. package/src/services/http-backend/http-backend.html +21 -0
  104. package/src/services/http-backend/http-backend.js +1 -1
  105. package/src/services/http-backend/http-backend.spec.js +1 -1
  106. package/src/services/http-backend/http-backend.test.js +11 -0
  107. package/src/shared/common.spec.js +4 -4
  108. package/src/shared/hof.spec.js +1 -1
  109. package/src/shared/jqlite/jqlite.html +18 -0
  110. package/src/{jqLite.js → shared/jqlite/jqlite.js} +2 -2
  111. package/src/{jqlite.spec.js → shared/jqlite/jqlite.spec.js} +7 -7
  112. package/src/shared/jqlite/jqlite.test.js +11 -0
  113. package/src/{min-err.spec.js → shared/min-err.spec.js} +2 -2
  114. package/src/shared/shared.html +22 -0
  115. package/src/shared/shared.test.js +11 -0
  116. package/src/shared/strings.spec.js +1 -1
  117. package/src/shared/test-utils.js +2 -2
  118. package/src/shared/utils.spec.js +1 -1
  119. package/src/src.html +22 -0
  120. /package/src/exts/{messages.md → messages/messages.md} +0 -0
@@ -1,4 +1,4 @@
1
- import { forEach, isString } from "../shared/utils";
1
+ import { forEach, isString } from "../../shared/utils";
2
2
 
3
3
  export function initMessageModule() {
4
4
  window.angular
@@ -1,8 +1,8 @@
1
1
  import { createInjector } from "../../injector";
2
- import { countWatchers } from "../../core/root-scope";
2
+ import { countWatchers } from "../../core/scope/scope";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { isString } from "../../shared/utils";
5
- import { jqLite } from "../../jqLite";
5
+ import { jqLite } from "../../shared/jqlite/jqlite";
6
6
 
7
7
  describe("ngMessages", () => {
8
8
  let $rootScope, $compile, $templateCache;
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/exts/messages/messages.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,7 +1,7 @@
1
1
  import { publishExternalAPI } from "../../public";
2
2
  import { createInjector } from "../../injector";
3
3
  import { isString, includes } from "../../shared/utils";
4
- import { jqLite } from "../../jqLite";
4
+ import { jqLite } from "../../shared/jqlite/jqlite";
5
5
 
6
6
  describe("Filter: filter", () => {
7
7
  let filter;
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../public";
2
2
  import { createInjector } from "../../injector";
3
- import { jqLite } from "../../jqLite";
3
+ import { jqLite } from "../../shared/jqlite/jqlite";
4
4
 
5
5
  describe("Filter: limitTo", () => {
6
6
  let items;
@@ -1,7 +1,7 @@
1
- import { setupModuleLoader } from "../loader";
2
- import { createInjector } from "../injector";
3
- import { publishExternalAPI } from "../public";
4
- import { valueFn, extend } from "../shared/utils";
1
+ import { setupModuleLoader } from "./loader";
2
+ import { createInjector } from "./injector";
3
+ import { publishExternalAPI } from "./public";
4
+ import { valueFn, extend } from "./shared/utils";
5
5
 
6
6
  describe("injector.modules", () => {
7
7
  beforeEach(() => {
package/src/loader.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  isValidObjectMaxDepth,
24
24
  minErrConfig,
25
25
  } from "./shared/utils";
26
- import { jqLite, startingTag } from "./jqLite";
26
+ import { jqLite, startingTag } from "./shared/jqlite/jqlite";
27
27
  import { createInjector } from "./injector";
28
28
  import { CACHE } from "./core/cache/cache";
29
29
 
package/src/public.js CHANGED
@@ -100,8 +100,8 @@ import { $TimeoutProvider } from "./core/timeout/timeout";
100
100
  import { SanitizeUriProvider } from "./core/sanitize/sanitize-uri";
101
101
  import { setupModuleLoader } from "./loader";
102
102
  import { initAnimateModule } from "./animations/module";
103
- import { initMessageModule } from "./exts/messages";
104
- import { initAriaModule } from "./exts/aria";
103
+ import { initMessageModule } from "./exts/messages/messages";
104
+ import { initAriaModule } from "./exts/aria/aria";
105
105
  import { initRouter } from "./router/index";
106
106
 
107
107
  export function publishExternalAPI() {
@@ -1,5 +1,5 @@
1
- import { publishExternalAPI } from "../public";
2
- import { createInjector } from "../injector";
1
+ import { publishExternalAPI } from "./public";
2
+ import { createInjector } from "./injector";
3
3
 
4
4
  describe("public", () => {
5
5
  beforeEach(() => {
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/common/glob.spec.js"></script>
14
+ </head>
15
+ <body>
16
+ <div id="dummy"></div>
17
+ </body>
18
+ </html>
@@ -1,6 +1,6 @@
1
1
  import { test, expect } from "@playwright/test";
2
2
 
3
- const TEST_URL = "src/router/common/glob.spec.js";
3
+ const TEST_URL = "src/router/common/glob.html";
4
4
 
5
5
  test("unit tests contain no errors", async ({ page }) => {
6
6
  await page.goto(TEST_URL);
@@ -0,0 +1,19 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ test("unitstate-directives tests contain no errors", async ({ page }) => {
4
+ await page.goto("src/router/directives/state-directives.html");
5
+ await page.content();
6
+ await page.waitForTimeout(6000);
7
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
8
+ /0 failures/,
9
+ );
10
+ });
11
+
12
+ test("unit view-directives tests contain no errors", async ({ page }) => {
13
+ await page.goto("src/router/directives/view-directives.html");
14
+ await page.content();
15
+ await page.waitForTimeout(6000);
16
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
17
+ /0 failures/,
18
+ );
19
+ });
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/directives/state-directives.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -1,7 +1,7 @@
1
- import { jqLite } from "../../jqLite";
1
+ import { jqLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
- import { browserTrigger, wait } from "../test-utils";
4
+ import { browserTrigger, wait } from "../../shared/test-utils";
5
5
 
6
6
  describe("ngStateRef", () => {
7
7
  window.location.hash = "";
@@ -19,6 +19,7 @@ describe("ngStateRef", () => {
19
19
  $stateParams;
20
20
 
21
21
  beforeEach(() => {
22
+ window.location.hash = "";
22
23
  window.angular = new Angular();
23
24
  publishExternalAPI();
24
25
  let module = window.angular.module("defaultModule", ["ng.router"]);
@@ -5,7 +5,7 @@ import { parse } from "../../shared/hof";
5
5
  import { ResolveContext } from "../resolve/resolve-context";
6
6
  import { trace } from "../common/trace";
7
7
  import { Ng1ViewConfig } from "../state/views";
8
- import { jqLite } from "../../jqLite";
8
+ import { jqLite } from "../../shared/jqlite/jqlite";
9
9
  import { getLocals } from "../state/state-registry";
10
10
  /**
11
11
  * `ui-view`: A viewport directive which is filled in by a view from the active state.
@@ -6,12 +6,13 @@
6
6
  // }
7
7
  // }
8
8
 
9
- import { dealoc, jqLite } from "../../jqLite";
9
+ import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
10
10
  import { Angular } from "../../loader";
11
11
  import { publishExternalAPI } from "../../public";
12
- import { wait } from "../test-utils";
12
+ import { wait } from "../../shared/test-utils";
13
13
 
14
14
  describe("ngView", () => {
15
+ window.location.hash = "";
15
16
  let $stateProvider,
16
17
  scope,
17
18
  $compile,
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/directives/view-directive.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/services.spec.js"></script>
14
+ <script type="module" src="/src/router/state-filter.spec.js"></script>
15
+ <script type="module" src="/src/router/template-factory.spec.js"></script>
16
+ <script type="module" src="/src/router/view-hook.spec.js"></script>
17
+ <script type="module" src="/src/router/view-scroll.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/router.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,5 +1,5 @@
1
- import { Angular } from "../../loader";
2
- import { publishExternalAPI } from "../../public";
1
+ import { Angular } from "../loader";
2
+ import { publishExternalAPI } from "../public";
3
3
 
4
4
  describe("router services", () => {
5
5
  let providers;
@@ -1,6 +1,7 @@
1
- import { StateBuilder } from "../../router/state/stateBuilder";
1
+ import { StateBuilder } from "../../router/state/state-builder";
2
2
 
3
- describe("Ng1 StateBuilder", function () {
3
+ // TODO refactor this to url service
4
+ xdescribe("StateBuilder", function () {
4
5
  const parent = { name: "" };
5
6
  let builder,
6
7
  matcher,
@@ -15,7 +16,7 @@ describe("Ng1 StateBuilder", function () {
15
16
  builder.builder("views", ng1ViewsBuilder);
16
17
  });
17
18
 
18
- it("should use the state object to build a default view, when no `views` property is found", function () {
19
+ xit("should use the state object to build a default view, when no `views` property is found", function () {
19
20
  const config = {
20
21
  url: "/foo",
21
22
  templateUrl: "/foo.html",
@@ -34,7 +35,7 @@ describe("Ng1 StateBuilder", function () {
34
35
  );
35
36
  });
36
37
 
37
- it("It should use the views object to build views, when defined", function () {
38
+ xit("It should use the views object to build views, when defined", function () {
38
39
  const config = { a: { foo: "bar", controller: "FooController" } };
39
40
  const builtViews = builder.builder("views")({
40
41
  parent: parent,
@@ -44,9 +45,7 @@ describe("Ng1 StateBuilder", function () {
44
45
  expect(builtViews.a.controller).toEqual(config.a.controller);
45
46
  });
46
47
 
47
- it("should not allow a view config with both component and template keys", inject(function (
48
- $injector,
49
- ) {
48
+ xit("should not allow a view config with both component and template keys", function () {
50
49
  const config = {
51
50
  name: "foo",
52
51
  url: "/foo",
@@ -68,14 +67,12 @@ describe("Ng1 StateBuilder", function () {
68
67
  expect(() =>
69
68
  builder.builder("views")(Object.assign({ bindings: {} }, config)),
70
69
  ).toThrow();
71
- }));
70
+ });
72
71
 
73
- it("should replace a resolve: string value with a function that injects the service of the same name", inject(function (
74
- $injector,
75
- ) {
72
+ it("should replace a resolve: string value with a function that injects the service of the same name", function () {
76
73
  const config = { resolve: { foo: "bar" } };
77
74
  expect(builder.builder("resolvables")).toBeDefined();
78
75
  const built = builder.builder("resolvables")(config);
79
76
  expect(built[0].deps).toEqual(["bar"]);
80
- }));
77
+ });
81
78
  });
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/router/state/state-builder.spec.js"
16
+ ></script>
17
+ <script type="module" src="/src/router/state/state.spec.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -1,8 +1,8 @@
1
- import { dealoc, jqLite } from "../../jqLite";
1
+ import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { isFunction } from "../../shared/utils";
5
- import { wait } from "../test-utils";
5
+ import { wait } from "../../shared/test-utils";
6
6
 
7
7
  describe("$state", () => {
8
8
  let $injector, template, ctrlName, $provide, $compile, module, $stateRegistry;
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/state/state.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,5 +1,5 @@
1
- import { Angular } from "../../loader";
2
- import { publishExternalAPI } from "../../public";
1
+ import { Angular } from "../loader";
2
+ import { publishExternalAPI } from "../public";
3
3
 
4
4
  describe("router filters", function () {
5
5
  let module, $parse, $state, $q, $rootScope, $location;
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../jqLite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc, jqLite } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("templateFactory", () => {
7
7
  let $injector,
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../jqLite";
1
+ import { dealoc } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { map, find } from "../../shared/common";
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/url/url-service.spec.js"></script>
14
+ </head>
15
+ <body>
16
+ <div id="dummy"></div>
17
+ </body>
18
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/url/url.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/router/view/view.spec.js"></script>
14
+ </head>
15
+ <body>
16
+ <div id="dummy"></div>
17
+ </body>
18
+ </html>
@@ -1,4 +1,4 @@
1
- import { dealoc, jqLite } from "../../jqLite";
1
+ import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { curry } from "../../shared/hof";
@@ -13,7 +13,7 @@ import {
13
13
  import { PathNode } from "../../router/path/path-node";
14
14
  import { PathUtils } from "../../router/path/path-utils";
15
15
  import { tail } from "../../shared/common";
16
- import { wait } from "../test-utils";
16
+ import { wait } from "../../shared/test-utils";
17
17
 
18
18
  describe("view", () => {
19
19
  let scope,
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/router/view/view.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../jqLite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("view hooks", () => {
7
7
  let app,
@@ -1,7 +1,7 @@
1
- import { dealoc, jqLite } from "../../jqLite";
2
- import { Angular } from "../../loader";
3
- import { publishExternalAPI } from "../../public";
4
- import { wait } from "../test-utils";
1
+ import { dealoc } from "../shared/jqlite/jqlite";
2
+ import { Angular } from "../loader";
3
+ import { publishExternalAPI } from "../public";
4
+ import { wait } from "../shared/test-utils";
5
5
 
6
6
  describe("ngView", () => {
7
7
  describe("scrollIntoView", () => {
@@ -1,4 +1,4 @@
1
- import { jqLite } from "../jqLite";
1
+ import { jqLite } from "../shared/jqlite/jqlite";
2
2
  import { urlResolve } from "../core/url-utils/url-utils";
3
3
  import { forEach, isUndefined, equals } from "../shared/utils";
4
4
 
@@ -1,4 +1,4 @@
1
- import { jqLite } from "../jqLite";
1
+ import { jqLite } from "../shared/jqlite/jqlite";
2
2
 
3
3
  /**
4
4
  * @ngdoc service
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script type="module" src="/src/services/http/http.spec.js"></script>
14
+ <script
15
+ type="module"
16
+ src="/src/services/http/template-request.spec.js"
17
+ ></script>
18
+ </head>
19
+ <body>
20
+ <div id="dummy"></div>
21
+ </body>
22
+ </html>
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/services/http/http.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>AngularTS Test Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
8
+ <link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
9
+ <script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
10
+ <script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
11
+ <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
+ <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
+ <script
14
+ type="module"
15
+ src="/src/services/http-backend/http-backend.spec.js"
16
+ ></script>
17
+ </head>
18
+ <body>
19
+ <div id="dummy"></div>
20
+ </body>
21
+ </html>
@@ -201,7 +201,7 @@ export function createHttpBackend($browser, createXhr, $browserDefer) {
201
201
  ) {
202
202
  // cancel timeout and subsequent timeout promise resolution
203
203
  if (isDefined(timeoutId)) {
204
- $browserDefer.cancel(timeoutId);
204
+ $browser.cancel(timeoutId);
205
205
  }
206
206
  xhr = null;
207
207
 
@@ -1,6 +1,6 @@
1
1
  import { createInjector } from "../../injector";
2
2
  import { publishExternalAPI } from "../../public";
3
- import { createHttpBackend } from "../../services/http-backend";
3
+ import { createHttpBackend } from "./http-backend";
4
4
  import sinon from "sinon";
5
5
 
6
6
  describe("$httpBackend", () => {
@@ -0,0 +1,11 @@
1
+ import { test, expect } from "@playwright/test";
2
+
3
+ const TEST_URL = "src/services/http-backend/http-backend.html";
4
+
5
+ test("unit tests contain no errors", async ({ page }) => {
6
+ await page.goto(TEST_URL);
7
+ await page.content();
8
+ await expect(page.locator(".jasmine-overall-result")).toHaveText(
9
+ /0 failures/,
10
+ );
11
+ });