@angular-wave/angular.ts 0.0.36 → 0.0.37
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.
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/package.json +1 -1
- package/playwright.config.ts +1 -1
- package/src/angular.spec.js +6 -6
- package/src/animations/animate-css-driver.js +1 -1
- package/src/animations/animate-queue.js +1 -1
- package/src/animations/animation.js +1 -1
- package/src/animations/shared.js +1 -1
- package/src/binding.spec.js +1 -1
- package/src/core/animate/animate.js +1 -1
- package/src/core/compile/compile.js +1 -1
- package/src/core/compile/compile.spec.js +1 -1
- package/src/core/document.spec.js +1 -1
- package/src/core/location/location.js +1 -1
- package/src/core/prop.spec.js +1 -1
- package/src/core/root-element.spec.js +1 -1
- package/src/core/sce/sce.js +1 -1
- package/src/directive/attrs/attrs.js +1 -1
- package/src/directive/attrs/attrs.spec.js +1 -1
- package/src/directive/attrs/boolean.spec.js +1 -1
- package/src/directive/attrs/element-style.spec.js +1 -1
- package/src/directive/attrs/src.html +18 -0
- package/src/directive/attrs/src.spec.js +1 -1
- package/src/directive/attrs/{srcset.test.js → src.test.js} +1 -1
- package/src/directive/bind/bind.spec.js +1 -1
- package/src/directive/change/change.spec.js +1 -1
- package/src/directive/class/class.spec.js +1 -2
- package/src/directive/cloak/cloak.spec.js +1 -1
- package/src/directive/controller/controller.spec.js +1 -1
- package/src/directive/events/click.spec.js +1 -1
- package/src/directive/events/event.spec.js +1 -1
- package/src/directive/form/form.spec.js +1 -1
- package/src/directive/if/if.js +3 -1
- package/src/directive/if/if.spec.js +1 -1
- package/src/directive/include/include.js +1 -1
- package/src/directive/include/include.spec.js +1 -1
- package/src/directive/init/init.spec.js +1 -1
- package/src/directive/input/input.spec.js +1 -1
- package/src/directive/list/list.spec.js +1 -1
- package/src/directive/model/model.js +1 -1
- package/src/directive/model/model.spec.js +1 -1
- package/src/directive/model-options/model-options.spec.js +1 -1
- package/src/directive/non-bindable/non-bindable.spec.js +1 -1
- package/src/directive/options/options.js +1 -1
- package/src/directive/options/options.spec.js +1 -1
- package/src/directive/ref/href.spec.js +1 -1
- package/src/directive/repeat/repeat.js +1 -1
- package/src/directive/repeat/repeat.spec.js +1 -1
- package/src/directive/script/script.spec.js +1 -1
- package/src/directive/select/select.js +1 -1
- package/src/directive/select/select.spec.js +1 -1
- package/src/directive/show-hide/show-hide.spec.js +1 -1
- package/src/directive/style/style.spec.js +1 -1
- package/src/directive/switch/switch.js +1 -1
- package/src/directive/switch/switch.spec.js +1 -1
- package/src/directive/transclude/transclude.js +1 -1
- package/src/directive/validators/validators.js +1 -1
- package/src/directive/validators/validators.spec.js +1 -1
- package/src/exts/aria/aria.html +21 -0
- package/src/exts/{aria.js → aria/aria.js} +1 -1
- package/src/exts/{aria.spec.js → aria/aria.spec.js} +1 -1
- package/src/exts/aria/aria.test.js +11 -0
- package/src/exts/messages/messages.html +21 -0
- package/src/exts/{messages.js → messages/messages.js} +1 -1
- package/src/exts/{messages.spec.js → messages/messages.spec.js} +2 -2
- package/src/exts/messages/messages.test.js +11 -0
- package/src/filters/filter.spec.js +1 -1
- package/src/filters/limit-to.spec.js +1 -1
- package/src/injector.spec.js +4 -4
- package/src/loader.js +1 -1
- package/src/public.js +2 -2
- package/src/public.spec.js +2 -2
- package/src/router/common/glob.html +18 -0
- package/src/router/common/glob.test.js +1 -1
- package/src/router/directives/view-directive.js +1 -1
- package/src/router/state-directives.spec.js +1 -1
- package/src/router/state.spec.js +1 -1
- package/src/router/template-factory.spec.js +1 -1
- package/src/router/url-service.spec.js +1 -1
- package/src/router/view-directive.spec.js +1 -1
- package/src/router/view-hook.spec.js +1 -1
- package/src/router/view-scroll.spec.js +1 -1
- package/src/router/view.spec.js +1 -1
- package/src/services/browser.js +1 -1
- package/src/services/document.js +1 -1
- package/src/shared/jqlite/jqlite.html +18 -0
- package/src/{jqLite.js → shared/jqlite/jqlite.js} +2 -2
- package/src/{jqlite.spec.js → shared/jqlite/jqlite.spec.js} +7 -7
- package/src/shared/jqlite/jqlite.test.js +11 -0
- package/src/shared/strings.spec.js +1 -1
- package/src/shared/test-utils.js +1 -1
- /package/src/exts/{messages.md → messages/messages.md} +0 -0
- /package/src/{min-err.spec.js → shared/min-err.spec.js} +0 -0
package/package.json
CHANGED
package/playwright.config.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default defineConfig({
|
|
|
20
20
|
/* Retry on CI only */
|
|
21
21
|
retries: process.env.CI ? 2 : 0,
|
|
22
22
|
/* Opt out of parallel tests on CI. */
|
|
23
|
-
workers:
|
|
23
|
+
workers: 1,
|
|
24
24
|
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
25
25
|
reporter: 'html',
|
|
26
26
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
package/src/angular.spec.js
CHANGED
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
nextUid,
|
|
24
24
|
nodeName_,
|
|
25
25
|
snakeCase,
|
|
26
|
-
} from "
|
|
27
|
-
import { dealoc, jqLite, startingTag } from "
|
|
28
|
-
import { Angular, angularInit } from "
|
|
29
|
-
import { publishExternalAPI } from "
|
|
30
|
-
import { createInjector } from "
|
|
26
|
+
} from "./shared/utils";
|
|
27
|
+
import { dealoc, jqLite, startingTag } from "./shared/jqlite/jqlite";
|
|
28
|
+
import { Angular, angularInit } from "./loader";
|
|
29
|
+
import { publishExternalAPI } from "./public";
|
|
30
|
+
import { createInjector } from "./injector";
|
|
31
31
|
|
|
32
32
|
describe("angular", () => {
|
|
33
33
|
let element, document, module, injector, $rootScope, $compile;
|
|
@@ -1482,7 +1482,7 @@ describe("angular", () => {
|
|
|
1482
1482
|
testForEachSpec(2, "12");
|
|
1483
1483
|
});
|
|
1484
1484
|
|
|
1485
|
-
it("should follow the ES spec when called with jQuery/
|
|
1485
|
+
it("should follow the ES spec when called with jQuery/shared/jqlite/jqlite", () => {
|
|
1486
1486
|
testForEachSpec(2, jqLite("<span>a</span><span>b</span>"));
|
|
1487
1487
|
});
|
|
1488
1488
|
|
package/src/animations/shared.js
CHANGED
package/src/binding.spec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { jqLite } from "../../
|
|
3
|
+
import { jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
|
|
5
5
|
describe("$document", () => {
|
|
6
6
|
let $document, $httpBackend, $http, $$isDocumentHidden;
|
package/src/core/prop.spec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { jqLite } from "../../
|
|
3
|
+
import { jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { valueFn } from "../../shared/utils";
|
|
5
5
|
|
|
6
6
|
describe("ngProp*", () => {
|
package/src/core/sce/sce.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
|
|
5
5
|
describe("boolean attr directives", () => {
|
|
6
6
|
let element, $rootScope, $compile, $rootElement;
|
|
@@ -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/directive/attrs/src.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 "../../
|
|
1
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
2
2
|
import { publishExternalAPI } from "../../public";
|
|
3
3
|
import { createInjector } from "../../injector";
|
|
4
4
|
import { valueFn } from "../../shared/utils";
|
|
@@ -246,7 +246,6 @@ describe("ngClass", () => {
|
|
|
246
246
|
'<ul><li ng-repeat="i in [0,1]" class="existing" ng-class-odd="\'odd\'" ng-class-even="\'even\'"></li><ul>',
|
|
247
247
|
)($rootScope);
|
|
248
248
|
$rootScope.$digest();
|
|
249
|
-
debugger
|
|
250
249
|
const e1 = jqLite(element[0].childNodes[1]);
|
|
251
250
|
const e2 = jqLite(element[0].childNodes[3]);
|
|
252
251
|
expect(e1[0].classList.contains("existing")).toBeTruthy();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { bind } from "../../shared/utils";
|
|
5
5
|
import { Angular } from "../../loader";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { Angular } from "../../loader";
|
|
5
5
|
|
|
6
6
|
describe("event directives", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { FormController } from "../../directive/form/form";
|
|
5
5
|
import { Angular } from "../../loader";
|
|
6
6
|
|
package/src/directive/if/if.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getBlockNodes } from "../../
|
|
1
|
+
import { getBlockNodes } from "../../shared/jqlite/jqlite";
|
|
2
2
|
|
|
3
3
|
export const ngIfDirective = [
|
|
4
4
|
"$animate",
|
|
@@ -17,6 +17,8 @@ export const ngIfDirective = [
|
|
|
17
17
|
if (!childScope) {
|
|
18
18
|
$transclude((clone, newScope) => {
|
|
19
19
|
childScope = newScope;
|
|
20
|
+
// TODO removing this breaks messages test
|
|
21
|
+
clone[clone.length++] = document.createComment("");
|
|
20
22
|
// Note: We only need the first/last node of the cloned nodes.
|
|
21
23
|
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
|
|
22
24
|
// by a directive with templateUrl when its template arrives.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { EMAIL_REGEXP, ISO_DATE_REGEXP, URL_REGEXP } from "./input";
|
|
5
5
|
import { forEach } from "../../shared/utils";
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
setupValidity,
|
|
23
23
|
} from "../form/form";
|
|
24
24
|
import { defaultModelOptions } from "../model-options/model-options";
|
|
25
|
-
import { startingTag } from "../../
|
|
25
|
+
import { startingTag } from "../../shared/jqlite/jqlite";
|
|
26
26
|
import { ScopePhase } from "../../core/scope/scope";
|
|
27
27
|
|
|
28
28
|
export const ngModelMinErr = minErr("ngModel");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultModelOptions } from "../../directive/model-options/model-options";
|
|
2
|
-
import { dealoc, jqLite } from "../../
|
|
2
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
3
3
|
import { publishExternalAPI } from "../../public";
|
|
4
4
|
import { createInjector } from "../../injector";
|
|
5
5
|
import { valueFn } from "../../shared/utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { isDefined } from "../../shared/utils";
|
|
5
5
|
|
|
6
6
|
describe("ngHref", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { forEach, valueFn } from "../../shared/utils";
|
|
5
5
|
import { Angular } from "../../loader";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
|
|
5
5
|
describe("scriptDirective", () => {
|
|
6
6
|
let $rootScope;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publishExternalAPI } from "../../public";
|
|
2
2
|
import { createInjector } from "../../injector";
|
|
3
|
-
import { dealoc, jqLite } from "../../
|
|
3
|
+
import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
|
|
4
4
|
import { forEach, hashKey, equals, isNumberNaN } from "../../shared/utils";
|
|
5
5
|
import { browserTrigger } from "../../shared/test-utils";
|
|
6
6
|
|
|
@@ -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/exts/aria/aria.spec.js"
|
|
16
|
+
></script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="dummy"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const TEST_URL = "src/exts/aria/aria.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/exts/messages/messages.spec.js"
|
|
16
|
+
></script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="dummy"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|