From 524a8a42a4c8d136a8f33739f8fea58ce78dd92c Mon Sep 17 00:00:00 2001 From: Artemy Tregubenko Date: Fri, 9 May 2014 18:09:38 +0200 Subject: added @ngInject support for inline functions --- test/compress/angular-inject.js | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 test/compress/angular-inject.js (limited to 'test') diff --git a/test/compress/angular-inject.js b/test/compress/angular-inject.js new file mode 100644 index 00000000..1459361c --- /dev/null +++ b/test/compress/angular-inject.js @@ -0,0 +1,67 @@ +ng_inject_defun: { + options = { + angular: true + }; + input: { + /*@ngInject*/ + function Controller(dependency) { + return dependency; + } + } + expect: { + function Controller(dependency) { + return dependency; + } + Controller.$inject=['dependency'] + } +} + +ng_inject_assignment: { + options = { + angular: true + }; + input: { + /*@ngInject*/ + var Controller = function(dependency) { + return dependency; + } + } + expect: { + var Controller = function(dependency) { + return dependency; + } + Controller.$inject=['dependency'] + } +} + +ng_inject_inline: { + options = { + angular: true + }; + input: { + angular.module('a'). + factory('b', + /*@ngInject*/ + function(dependency) { + return dependency; + }). + directive('c', + /*@ngInject*/ + function(anotherDependency) { + return anotherDependency; + }) + } + expect: { + angular.module('a'). + factory('b',[ + 'dependency', + function(dependency) { + return dependency; + }]). + directive('c',[ + 'anotherDependency', + function(anotherDependency) { + return anotherDependency; + }]) + } +} \ No newline at end of file -- cgit v1.2.3 49e57fb8409'>root/gnu/tests/install.scm
AgeCommit message (Expand)Author
2020-09-30system: image: Add image-type support....Mathieu Othacehe
2020-09-10tests: install: Fix gui-installed-desktop-os-encrypted test....Mathieu Othacehe
2020-06-30tests: install: Increase image size limit....Mathieu Othacehe
2020-06-26tests: install: Disable image compression....Mathieu Othacehe
2020-06-26tests: install: Fix marionette race condition....Mathieu Othacehe
2020-06-13image: Make 'find-image' non-monadic....Jan (janneke) Nieuwenhuizen
2020-05-29image: Do not use VM to create disk-images....Mathieu Othacehe
2020-05-20bootloader: grub: Allow booting from a Btrfs subvolume....Maxim Cournoyer
2020-05-05Merge branch 'master' into core-updatesMarius Bakke
2020-05-05image: Add a new API....Mathieu Othacehe
2020-05-03tests: install: Test a F2FS root file system....Danny Milosavljevic
2020-04-30Merge branch 'master' into core-updates...Marius Bakke
2020-04-29tests: install: Fix device usage....Mathieu Othacehe
2020-04-29tests: install: Fix gui-installed-os test....Mathieu Othacehe
2020-04-29tests: install: Increase virtual machine RAM....Mathieu Othacehe
2020-04-26tests: Add 'guile-final' to the installation test GC roots....Marius Bakke
2020-04-10tests: Run guided installation tests from an ISO image....Ludovic Courtès
2020-04-08tests: Mark VM images as non-substitutable....Ludovic Courtès
2020-03-26tests: install: Add %test-gui-installed-desktop-os-encrypted....Mathieu Othacehe
2020-03-22tests: install: Abort when one installation step fails....Mathieu Othacehe
2020-03-19tests: Accept manual installation scripts that exit with SIGTERM....Ludovic Courtès
2020-03-05tests: install: Add %test-gui-installed-os-encrypted....Mathieu Othacehe
2020-03-05tests: install: Add "gui-installed-os"....Ludovic Courtès
2020-02-22tests: Factorize LUKS passphrase....Ludovic Courtès
2020-01-19tests: install: "raid-root-os" test uses RAID-1 instead of RAID-0....Ludovic Courtès
2020-01-03tests: install: Test a JFS root file system....Tobias Geerinckx-Rice
2019-11-18tests: install: Fix typo....Maxim Cournoyer
2019-11-06tests: install: Increase root partition size....Ludovic Courtès
2019-07-06tests: encrypted-root-os: Increase root partition size....Ludovic Courtès
2019-06-24tests: Import (guix build utils) in the marionette....Ludovic Courtès
2019-05-15system: Add 'operating-system-with-gc-roots'....Ludovic Courtès
2019-04-14tests: separate-store-os: Increase root partition size....Ludovic Courtès
2019-03-25accounts: Add default value for the 'home-directory' field of <user-account>....Ludovic Courtès
2019-03-13Remove traces of "GuixSD"....Ludovic Courtès
2019-01-22gnu: Remove duplicate record fields....Ludovic Courtès
2019-01-17tests: Rename %test-encrypted-os to %test-encrypted-root-os....Mathieu Othacehe
2018-12-04tests: Increase root partitions size to 1.2G....Ludovic Courtès
2018-05-28system: Remove uses of the 'title' field of <file-system>....Ludovic Courtès
2018-03-02system: Add 'initrd-modules' field....Ludovic Courtès
2017-12-06gnu, doc, tests: Use ‘bootloader-configuration’ everywhere....Tobias Geerinckx-Rice
2017-11-15tests: install: Increase target-size....Oleg Pykhalov
2017-10-30tests: install: Estimate the installation system disk size....Hartmut Goebel
2017-09-26tests: install: Switch to modifying the gc-root-service-type....Ludovic Courtès
2017-09-08tests: Fix incorrect use of 'file-append'....Ludovic Courtès
2017-09-06tests: Add test for installing from an ISO Image....Christopher Baines
2017-08-23gnu: bootloader: Deprecate "device" field in favor of "target"....Andy Wingo
2017-07-15gnu: Rename (gnu packages qemu) to (gnu packages virtualization)....宋文武
2017-06-21tests: Add extlinux gpt test....Mathieu Othacehe