Commit Graph

44 Commits

Author SHA1 Message Date
Pete Richards
0d53898af9 Build refactor to webpack (#2139)
* Move to webpack build
* Use webpack for building openmct.  Move SCSS to one folder and load
all core css up front.  Remove bower, begin removing gulp in favor
of npm run.
* Uses eslint instead of jshint and jscs.  Merge style checking rules
into .eshintrc.js, carrying over core parts of crockford style and
our adaptations.  Current code base fails to pass the linter, want
to separate linter changes from fixes to linting rules.
* Support for Vue SFC with example
* Remove outdated examples
* Use HTML loader for html (supports relative imports of resources e.g.
images) and raw-loader for when javascript must be loaded as text.
2018-08-07 14:47:50 -07:00
Andrew Henry
433dee0314 Update test specs to use Jasmine 3 (#2089)
* Updated Karma and Jasmine versions

* Added DOMObserver class. Supports promise-based testing of DOM changes

Update asynchronous test specs to use promises or done() instead of waitsFor/runs

* Modified ActionCapability to duplicate context object properties as own properties for better object equality comparisons

* Global find + replace to fix syntax issues

* Fixed various issues caused by non-deterministic runtime order of tests in Jasmine 3. Fixed issues caused by changes to determination of object equality

* Addressed review comments

* Resolved merge conflicts with master

* Fixed style errors

* Use spy.calls.count() instead of manually tracking
2018-06-29 17:32:59 -07:00
Nick Weingartner
c55eaeb193 [Copyright] Update copyright year across platform code references
Fixes #2034.
2018-05-14 15:46:17 -07:00
Luis Schubert
fb0a577d16 [Open1641] Updated the spec files to check for info messages instead of warning messages 2017-07-10 09:46:51 -07:00
Victor Woeltjen
185567cf29 [Licenses] Update copyright year to 2017
Fixes #1517
2017-04-05 14:52:46 -07:00
Henry
c8898ac6aa [Documentation] Updated copyright statement. Fixes #1081 2016-07-12 16:55:57 -07:00
Victor Woeltjen
fa77139077 [Code Style] Run gulp fixstyle
...to apply code style settings from #142.
2016-05-19 11:29:13 -07:00
Victor Woeltjen
ac5ac8d34e [Build] Remove boilerplate from scripts
No longer necessary after JSHint configuration.
2016-03-04 10:46:38 -08:00
Victor Woeltjen
0a5097a945 Merge pull request #642 from nasa/open460
[Build] Move to npm-based build
2016-02-08 12:21:01 -08:00
Victor Woeltjen
aebae27391 [Tests] Remove suite.json files
Remove obsolete suite.json files; #482
2016-02-02 09:35:50 -08:00
Victor Woeltjen
84ecfd3527 [Build] Remove remaining files in libs 2016-01-28 11:21:08 -08:00
Victor Woeltjen
df631ba40e [API Refactor] Update failing specs 2016-01-08 12:58:06 -08:00
Victor Woeltjen
b163b45a5e [Framework] Update spec
Update spec to verify that app.controller et al
are not called multiple times with the same key.
2015-09-18 15:10:21 -07:00
Victor Woeltjen
10863514cb [Licenses] Add license headers
WTD-1051.
2015-05-13 16:43:30 -07:00
Victor Woeltjen
7b16428803 [Logging] Add spec for log levels
Add spec for log levels, to allow these to be passed at run-time
in order to suppress logging during normal use. WTD-793.
2015-02-03 17:55:13 -08:00
Victor Woeltjen
04ee5bbbb5 [Framework] Implement runs category-of-extension
Implement 'runs' as a built-in category of extension, to support
bundle addition of functions to run when the application first
starts. Specifically supports loading of stylesheets, WTD-591.
2015-01-14 16:45:13 -08:00
Victor Woeltjen
f70fca081e [Framework] Add specs for built-in extension for run
Add tests for a built-in extension type to framework to allow app.run
to be invoked via bundle extensions. This supports stylesheet
injection, which should happen on load but isn't triggered
from any particular part of the page. WTD-591.
2015-01-14 16:33:37 -08:00
Victor Woeltjen
64ede1e917 [Framework] Add/update tests for sorting
Add/update framework tests to include the sorting of extensions
by priority, WTD-590.
2015-01-07 17:06:09 -08:00
Victor Woeltjen
baca4ab4e6 [Framework] Complete RequireJS configurator tests
Complete tests for the RequireJS configurator, used to
expose libraries beyond bundle boundaries (and, related,
to provide shims for non-AMD libraries.) WTD-568.
2015-01-02 17:59:45 -08:00
Victor Woeltjen
96aaea5e58 [Framework] Add RequireJS configurator
Add a configuration step (as part of the resolve phase)
to the framework layer, where bundle-defined paths and shims
are passed to RequireJS configuration. This permits both
the use of non-AMD modules and the exposure of libraries
across bundles. WTD-568.
2015-01-02 17:46:50 -08:00
Victor Woeltjen
9d84bbca5c [Framework] Add property retention spec
Add spec to verify that static properties continue
to be exposed on extension implementations after
they have been loaded. WTD-572.
2014-11-20 10:56:21 -08:00
Victor Woeltjen
5ae58644d9 [Framework] Add spec for constant registration
Add spec for registration of constant values as
extensions. WTD-572.
2014-11-20 10:52:01 -08:00
Victor Woeltjen
c594ad8918 [Framework] Add spec for property retention
Add spec to verify that static properties exposed by
extension constructors remain visible after these
have been converted to partial constructors. These
static methods have various uses, such as providing
appliesTo methods to classes where pre-instantiation
filtering is useful. WTD-572.
2014-11-20 10:48:04 -08:00
Victor Woeltjen
3682eb73cb [Framework] Remove temporary file
Remove temporary script file (introduced for initial
build/repository setup to illustrate naming conventions
and test declaration) from framework sources.

Completes implementation of framework layer for
WTD-518.
2014-11-07 04:57:51 -08:00
Victor Woeltjen
2e144ca003 [Framework] Fix code style in specs
Fix code style in specs for framework layer, written
for WTD-518.
2014-11-06 19:46:14 -08:00
Victor Woeltjen
bfcfa0127d [Framework] Spec for FrameworkInitializer
Complete specs for initial implementation of framework
layer, WTD-518.
2014-11-06 19:44:34 -08:00
Victor Woeltjen
0feb7c9699 [Framework] Remove spec for constants
Remove spec for Constants.js (only constants are defined
here, and there is no particular use to verifying their
existence; also, implicitly tested by specs for code
which uses these constants.) WTD-518
2014-11-06 19:33:47 -08:00
Victor Woeltjen
0d80494618 [Framework] Add spec for ImplementationLoader
WTD-518.
2014-11-06 19:29:55 -08:00
Victor Woeltjen
5f7704f1b8 [Framework] Add spec for ExtensionResolver
WTD-518
2014-11-06 19:20:51 -08:00
Victor Woeltjen
69c6811f00 [Framework] Fill in spec for bundle resolver
Fill in spec for bundle resolver, WTD-518.
2014-11-06 19:06:26 -08:00
Victor Woeltjen
2dde62cb79 [Framework] Complete ServiceCompositor spec
WTD-518.
2014-11-06 18:40:25 -08:00
Victor Woeltjen
5d4f1f2008 [Framework] Add spec for partial constructor
Add spec for partial constructor, used to handle two-stage
application of Angular dependencies and constructor
arguments. WTD-518.
2014-11-06 17:09:55 -08:00
Victor Woeltjen
b0267a9c59 [Framework] Complete spec for ExtensionRegistrar
Complete tests for the extension registar, WTD-518.
2014-11-06 16:52:22 -08:00
Victor Woeltjen
1a113b2a6f [Framework] Add specs for custom registrars
WTD-518
2014-11-06 16:08:14 -08:00
Victor Woeltjen
52e2761ac7 [Framework] Fill in spec for Extension
Fill in spec for Extension, part of the framework
component. WTD-518.
2014-11-06 15:41:25 -08:00
Victor Woeltjen
794d11e715 [Framework] Add spec for Bundle
Add spec for Bundle, used by the framework layer.
WTD-518.
2014-11-06 15:20:26 -08:00
Victor Woeltjen
cbea30d9cc [Framework] Add test cases for warning
Verify that warnings are issued when bundles are missing
or malformed. WTD-518.
2014-11-06 14:57:32 -08:00
Victor Woeltjen
587a913405 [Framework] Add test case for BundleLoader
Add a test case for BundleLoader, to improve test coverage
of framework layer. WTD-518.
2014-11-06 14:47:56 -08:00
Victor Woeltjen
8e1eb2f22f [Framework] Initial spec for bundle loader
Add first test case for bundle loader, WTD-518.
2014-11-06 14:28:22 -08:00
Victor Woeltjen
dac05d7841 [Framework] Spec for ApplicationBootstrapper
Add spec for the application bootstrapper; verify
its interactions with Angular. WTD-518.
2014-11-06 08:23:33 -08:00
Victor Woeltjen
e2f8b1eef9 [Framework] Add skeleton specs
Add empty specs for all classes introduced for the
framework layer, WTD-518.

Note that Main is omitted, as this launches the full
application.
2014-11-06 08:03:35 -08:00
Victor Woeltjen
047d56d662 [Structure] Add comments to temporary files
Add clarifying comments to temporary files, to
ensure they are distinguishable as placeholders.
Part of developing project folder structure and
build for WTD-519.
2014-10-31 09:49:09 -07:00
Victor Woeltjen
0bf0912bf8 [Tests] Initial spec runner
Initial spec runner; looks in bundles, assumes conventions.
Supports initial repository set up and build scripts, for
WTD-519.
2014-10-30 17:24:30 -07:00
Victor Woeltjen
a753818b24 [Build] Initial test dependencies
Initial commit of test dependencies, as brought over
from prototype, to continue establishing build. WTD-519.
2014-10-30 16:04:38 -07:00