Skip to content

Commit

Permalink
#1274 migrated reflection test. Enhnaced moment library with window p…
Browse files Browse the repository at this point in the history
…roperty instead of this.
  • Loading branch information
oleh-maikovych committed Apr 25, 2019
1 parent 45f9d31 commit 2fa34eb
Show file tree
Hide file tree
Showing 30 changed files with 1,661 additions and 4,750 deletions.
1,224 changes: 1,224 additions & 0 deletions platform-web-ui/src/main/resources/moment/moment-timezone-with-data.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

563 changes: 418 additions & 145 deletions platform-web-ui/src/main/resources/moment/moment-with-locales.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4,511 changes: 0 additions & 4,511 deletions platform-web-ui/src/main/resources/moment/moment.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {Polymer} from '/resources/polymer/@polymer/polymer/lib/legacy/polymer-fn.js';

import '/resources/components/moment-lib.js';

moment.locale('custom-locale', {
longDateFormat: {
LTS: @timeWithMillisFormat,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

<script src="/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script type="module">
import '/resources/polymer/@polymer/polymer/lib/elements/dom-bind.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<title>Generated Centre</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<title>calendar example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script type="module">
import '/resources/polymer/@polymer/paper-styles/paper-styles-classes.js';
import './tg-calendar.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '/resources/moment/moment-with-locales.min.js';
import '/resources/moment/moment-timezone-with-data.min.js';

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>Menu list example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>Tooltip example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script type="module">
import '/resources/polymer/@polymer/paper-styles/paper-styles-classes.js';
import './tg-component-with-tooltip.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>Menu list example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/polymer/webcomponentsjs/webcomponents-lite.js"></script>
<script type="module">
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout-classes.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<!--<title>@title</title>-->
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script type="module">
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout-classes.js';
import '/resources/polymer/@polymer/paper-styles/paper-styles-classes.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>Dynamic egi column</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>EGI example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<title>Element Loader Example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>Flex layout example</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script type="module">
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout-classes.js';
import '/resources/polymer/@polymer/paper-styles/paper-styles-classes.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<title>Generated Master</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<title>Generated Master</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<!--<title>@title</title>-->
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
<title>tg-reflector basic tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<script src="/resources/polymer/webcomponentsjs/webcomponents-lite.js"></script>
<script src="/resources/polymer/web-component-tester/browser.js"></script>
<script src="/resources/polymer/test-fixture/test-fixture-mocha.js"></script>
<script src="/resources/polymer/iron-test-helpers/mock-interactions.js"></script>

<link rel="import" href="/resources/polymer/test-fixture/test-fixture.html">

<link rel="import" href="/app/tg-reflector.html">
<script src="/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
<script src="/resources/polymer/wct-browser-legacy/browser.js"></script>
<script type="module">
import '/app/tg-reflector.js';
</script>
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '/resources/components/moment-lib.js';

export const timeZoneFormats = {
"UTC": {
"L": "YYYY-MM-DD",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script type="module">
import { Polymer } from '/resources/polymer/@polymer/polymer/lib/legacy/polymer-fn.js';
import { html } from '/resources/polymer/@polymer/polymer/lib/utils/html-tag.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<title>d3 chart spike</title>
<script src='/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js'></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src='/resources/moment/moment.js'></script>
<script src='/resources/moment/moment-with-locales.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
WCT._config.mochaOptions.timeout = 30000;

WCT.loadSuites([
'components/test/tg-scrollable-component.html',
'app/test/tg-menu-list-changes-test.html'
// 'reflection/test/tg-reflector.html',
'app/test/tg-menu-list-changes-test.html',
'reflection/test/tg-reflector.html'
// 'reflection/test/tg-numeric-utils.html',
// 'serialisation/test/tg-serialiser.html',
// 'egi/test/tg-egi-dynamic-column-dom-test.html',
Expand Down

0 comments on commit 2fa34eb

Please sign in to comment.