repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateSpec.js
test/ngAnimate/animateSpec.js
'use strict'; describe('animations', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); var element, applyAnimationClasses; beforeEach(module(function() { return function($$jqLite) { applyAnimationClasses = applyAnimationClassesFactory($$jqLite); }; })); af...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateCssDriverSpec.js
test/ngAnimate/animateCssDriverSpec.js
'use strict'; describe('ngAnimate $$animateCssDriver', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); function int(x) { return parseInt(x, 10); } function hasAll(array, vals) { for (var i = 0; i < vals.length; i++) { if (array.indexOf(vals[i]) === -1) retu...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animationHelperFunctionsSpec.js
test/ngAnimate/animationHelperFunctionsSpec.js
'use strict'; describe('animation option helper functions', function() { beforeEach(module('ngAnimate')); var element, applyAnimationClasses; beforeEach(inject(function($$jqLite) { applyAnimationClasses = applyAnimationClassesFactory($$jqLite); element = jqLite('<div></div>'); })); describe('prepa...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/ngAnimateSwapSpec.js
test/ngAnimate/ngAnimateSwapSpec.js
'use strict'; describe('ngAnimateSwap', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); var element; afterEach(function() { dealoc(element); }); var $rootScope, $compile, $animate; beforeEach(inject(function(_$rootScope_, _$animate_, _$compile_) { $rootScope ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/integrationSpec.js
test/ngAnimate/integrationSpec.js
'use strict'; describe('ngAnimate integration tests', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); var element, html, ss; beforeEach(module(function() { return function($rootElement, $document, $animate) { $animate.enabled(true); ss = createMockStyleShee...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateCssSpec.js
test/ngAnimate/animateCssSpec.js
'use strict'; describe('ngAnimate $animateCss', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); function assertAnimationRunning(element, not) { var className = element.attr('class'); var regex = /\b\w+-active\b/; if (not) { expect(className).toMatch(regex); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAnimate/animateJsSpec.js
test/ngAnimate/animateJsSpec.js
'use strict'; describe('ngAnimate $$animateJs', function() { beforeEach(module('ngAnimate')); beforeEach(module('ngAnimateMock')); function getDoneFunction(args) { for (var i = 1; i < args.length; i++) { var a = args[i]; if (isFunction(a)) return a; } } it('should return nothing if no ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngResource/resourceSpec.js
test/ngResource/resourceSpec.js
'use strict'; describe('resource', function() { var noop = angular.noop; var extend = angular.extend; describe('basic usage', function() { var $resource, CreditCard, callback, $httpBackend, resourceProvider, $q; beforeEach(module('ngResource')); beforeEach(module(function($resourceProvider) { resource...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/testabilityPatch.js
test/helpers/testabilityPatch.js
/* global jQuery: true, uid: true, jqCache: true */ 'use strict'; if (window.bindJQuery) bindJQuery(); beforeEach(function() { // all this stuff is not needed for module tests, where jqlite and publishExternalAPI and jqLite are not global vars if (window.publishExternalAPI) { publishExternalAPI(angular); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/privateMocksSpec.js
test/helpers/privateMocksSpec.js
'use strict'; describe('private mocks', function() { describe('Jasmine extensions', function() { describe('they', function() { it('should call `it` for each item in an array', function() { spyOn(window, 'it'); they('should do stuff with $prop', ['a', 'b', 'c']); expect(window.it)...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/support.js
test/helpers/support.js
'use strict'; var supportTests = { classes: '/^class\\b/.test((class C {}).toString())', fatArrows: 'a => a', shorthandMethods: '({ fn(x) { return; } })' }; var support = {}; for (var prop in supportTests) { if (supportTests.hasOwnProperty(prop)) { try { // eslint-disable-next-line no-eval su...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/privateMocks.js
test/helpers/privateMocks.js
'use strict'; /* globals xit */ function assertCompareNodes(a,b,not) { a = a[0] ? a[0] : a; b = b[0] ? b[0] : b; expect(a === b).toBe(!not); } function baseThey(msg, vals, spec, itFn) { var valsIsArray = angular.isArray(vals); angular.forEach(vals, function(val, key) { var m = msg.split('$prop').join(a...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/supportSpec.js
test/helpers/supportSpec.js
'use strict'; describe('support test results', function() { var expected, version, testName; var userAgent = window.navigator.userAgent; // Support: iOS 8 only if (/iPhone OS 10_1\d(?:_\d+)? /.test(userAgent)) { // iOS 8 official simulators have broken user agent (containing something like `iPhone OS 10_1...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/helpers/matchers.js
test/helpers/matchers.js
'use strict'; beforeEach(function() { function cssMatcher(presentClasses, absentClasses) { return function() { return { compare: function(actual) { var element = angular.element(actual); var present = true; var absent = false; angular.forEach(presentClasses...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngSanitize/sanitizeSpec.js
test/ngSanitize/sanitizeSpec.js
'use strict'; describe('HTML', function() { var ua = window.navigator.userAgent; var isChrome = /Chrome/.test(ua) && !/Edge/.test(ua); var expectHTML; beforeEach(module('ngSanitize')); beforeEach(function() { expectHTML = function(html) { var sanitize; inject(function($sanitize) { s...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngSanitize/filter/linkySpec.js
test/ngSanitize/filter/linkySpec.js
'use strict'; describe('linky', function() { var linky; beforeEach(module('ngSanitize')); beforeEach(inject(function($filter) { linky = $filter('linky'); })); it('should do basic filter', function() { expect(linky('http://ab/ (http://a/) <http://a/> http://1.2/v:~-123. c “http://example.com” ‘http...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngSanitize/directive/ngBindHtmlSpec.js
test/ngSanitize/directive/ngBindHtmlSpec.js
'use strict'; describe('ngBindHtml', function() { beforeEach(module('ngSanitize')); it('should set html', inject(function($rootScope, $compile) { var element = $compile('<div ng-bind-html="html"></div>')($rootScope); $rootScope.html = '<div unknown>hello</div>'; $rootScope.$digest(); expect(lower...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngRoute/routeParamsSpec.js
test/ngRoute/routeParamsSpec.js
'use strict'; describe('$routeParams', function() { beforeEach(module('ngRoute')); it('should publish the params into a service', function() { module(function($routeProvider) { $routeProvider.when('/foo', {}); $routeProvider.when('/bar/:barId', {}); }); inject(function($rootScope, $rou...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngRoute/routeSpec.js
test/ngRoute/routeSpec.js
'use strict'; describe('$routeProvider', function() { var $routeProvider; beforeEach(module('ngRoute')); beforeEach(module(function(_$routeProvider_) { $routeProvider = _$routeProvider_; $routeProvider.when('/foo', {template: 'Hello, world!'}); })); it('should support enabling/disabling automatic ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngRoute/directive/ngViewSpec.js
test/ngRoute/directive/ngViewSpec.js
'use strict'; describe('ngView', function() { describe('basics', function() { var element; beforeEach(module('ngRoute')); beforeEach(module(function($provide) { return function($rootScope, $compile, $animate) { element = $compile('<div><ng:view onload="load()"></ng:view></div>')($rootSco...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tools/index.js
test/e2e/tools/index.js
'use strict'; module.exports = { middleware: require('./middleware') };
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tools/middleware.js
test/e2e/tools/middleware.js
'use strict'; var url = require('url'); var util = require('./util'); var fixture = require('./fixture'); module.exports = middlewareFactory; function middlewareFactory(base) { base = base || '/e2e'; while (base.length && base[base.length - 1] === '/') base = base.slice(0, base.length - 1); var fixture_regexp ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tools/fixture.js
test/e2e/tools/fixture.js
'use strict'; var fs = require('fs'); var path = require('path'); var $ = require('cheerio'); var util = require('./util'); var root = path.resolve(__dirname, '..'); var fixtures = path.resolve(root, 'fixtures'); var projectRoot = path.resolve(__dirname, '../../..'); var build = path.resolve(projectRoot, 'build'); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tools/util.js
test/e2e/tools/util.js
'use strict'; var fs = require('fs'); var path = require('path'); var root = path.resolve(__dirname, '..'); var tests = path.resolve(root, 'fixtures'); function stat(path) { try { return fs.statSync(path); } catch (e) { // Ignore ENOENT. if (e.code !== 'ENOENT') { throw e; } } } function...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/loader/script.js
test/e2e/fixtures/loader/script.js
'use strict'; angular. module('test', [ 'ngTouch', 'ngSanitize', 'ngRoute', 'ngResource', 'ngParseExt', 'ngMessages', 'ngMessageFormat', 'ngCookies', 'ngAria', 'ngAnimate' ]). controller('TestController', function($scope) { $scope.text = 'Hello, world!'; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/anchor-scroll/script.js
test/e2e/fixtures/anchor-scroll/script.js
'use strict'; angular. module('test', []). controller('TestController', function($anchorScroll, $location, $scope) { $scope.scrollTo = function(target) { // Set `$location.hash()` to `target` and // `$anchorScroll` will detect the change and scroll $location.hash(target); }; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/ng-jq/script.js
test/e2e/fixtures/ng-jq/script.js
'use strict'; angular. module('test', []). run(function($rootScope) { $rootScope.jqueryVersion = window.angular.element().jquery || 'jqLite'; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/ng-route-promise/script.js
test/e2e/fixtures/ng-route-promise/script.js
'use strict'; angular. module('lettersApp', ['ngRoute']). config(function($routeProvider) { $routeProvider. otherwise(resolveRedirectTo('/foo1')). when('/foo1', resolveRedirectTo('/bar1')). when('/bar1', resolveRedirectTo('/baz1')). when('/baz1', resolveRedirectTo('/qux1')). when(...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/base-tag/script.js
test/e2e/fixtures/base-tag/script.js
'use strict'; angular. module('test', []). run(function($sce) { window.isTrustedUrl = function(url) { try { $sce.getTrustedResourceUrl(url); } catch (e) { return false; } return true; }; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/ready/script.js
test/e2e/fixtures/ready/script.js
'use strict'; var beforeReady; (function() { var divAfterScripts = window.document.getElementById('div-after-scripts'); beforeReady = divAfterScripts && divAfterScripts.textContent; })(); var afterReady; angular.element(function() { var divAfterScripts = window.document.getElementById('div-after-scripts'); af...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/angularjs-already-loaded/script.js
test/e2e/fixtures/angularjs-already-loaded/script.js
'use strict'; angular. module('test', []). controller('TestController', function($scope) { $scope.text = 'Hello, world!'; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/anchor-scroll-y-offset/script.js
test/e2e/fixtures/anchor-scroll-y-offset/script.js
'use strict'; angular. module('test', []). controller('TestController', function($anchorScroll, $location, $scope) { $anchorScroll.yOffset = 50; $scope.scrollTo = function(target) { if ($location.hash() !== target) { // Set `$location.hash()` to `target` and // `$anchorScroll` will d...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/ng-jq-jquery/script.js
test/e2e/fixtures/ng-jq-jquery/script.js
'use strict'; angular. module('test', []). run(function($rootScope) { $rootScope.jqueryVersion = window.angular.element().jquery || 'jqLite'; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/directive-require-html/script.js
test/e2e/fixtures/directive-require-html/script.js
'use strict'; angular. module('test', []). provider('$exceptionHandler', /** @this */ function() { this.$get = [function() { return function(error) { window.document.querySelector('#container').textContent = error && error.message; }; }]; }). directive('requireDirective...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/back2dom/script.js
test/e2e/fixtures/back2dom/script.js
'use strict'; angular .module('test', []) .run(function($rootScope) { $rootScope.internalFnCalled = false; $rootScope.internalFn = function() { $rootScope.internalFnCalled = true; }; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/http/script.js
test/e2e/fixtures/http/script.js
'use strict'; angular. module('test', []). config(function($httpProvider) { $httpProvider.interceptors.push(function($q) { return { request: function(config) { return $q(function(resolve) { window.setTimeout(resolve, 100, config); }); }, response: f...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/fixtures/sample/script.js
test/e2e/fixtures/sample/script.js
'use strict'; angular. module('test', []). controller('TestController', function($scope) { $scope.text = 'Hello, world!'; });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/angularjs-already-loaded.spec.js
test/e2e/tests/angularjs-already-loaded.spec.js
'use strict'; describe('App where AngularJS is loaded more than once', function() { beforeEach(function() { loadFixture('angularjs-already-loaded'); }); it('should have the interpolated text', function() { expect(element(by.binding('text')).getText()).toBe('Hello, world!'); }); });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/ready.spec.js
test/e2e/tests/ready.spec.js
'use strict'; describe('Firing a callback on ready', function() { it('should not have the div available immediately', function() { loadFixture('ready'); expect(element(by.className('before-ready')).getText()) .toBe(''); }); it('should wait for document ready', function() { loadFixture('ready')...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/version.spec.js
test/e2e/tests/version.spec.js
'use strict'; describe('angular.version', function() { var version; beforeEach(function() { loadFixture('version'); version = browser.driver.executeScript('return angular.version'); }); it('should expose the current version as object', function() { expect(version).toEqual(jasmine.any(Object)); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/directive-require-html.spec.js
test/e2e/tests/directive-require-html.spec.js
'use strict'; describe('require parent controller on html element', function() { it('should not use the html element as the parent element', function() { loadFixture('directive-require-html'); expect(element(by.id('container')).getText()).toContain('Controller \'requireTargetDirective\', required by direct...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/http.spec.js
test/e2e/tests/http.spec.js
'use strict'; describe('$http', function() { beforeEach(function() { loadFixture('http'); }); it('should correctly update the outstanding request count', function() { expect(element(by.binding('text')).getText()).toBe('Hello, world!'); }); });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/input-hidden.spec.js
test/e2e/tests/input-hidden.spec.js
'use strict'; describe('hidden thingy', function() { it('should pass', function() { loadFixture('input-hidden'); expect(element(by.css('input')).getAttribute('value')).toEqual(''); element(by.css('button')).click(); expect(element(by.css('input')).getAttribute('value')).toEqual('{{ 7 * 6 }}'); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/anchor-scroll.spec.js
test/e2e/tests/anchor-scroll.spec.js
'use strict'; describe('$anchorScroll', function() { beforeEach(function() { jasmine.addMatchers({ toBeInViewport: function() { return { compare: function(id) { var result = { pass: browser.driver. executeScript(_script_isInViewport, id). ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/base-tag.spec.js
test/e2e/tests/base-tag.spec.js
'use strict'; describe('SCE URL policy when base tags are present', function() { beforeEach(function() { loadFixture('base-tag'); }); it('allows the page URL (location.href)', function() { expectToBeTrusted(browser.getCurrentUrl(), true); }); it('blocks off-origin URLs', function() { expectToB...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/sample.spec.js
test/e2e/tests/sample.spec.js
'use strict'; // Sample E2E test: describe('Sample', function() { beforeEach(function() { loadFixture('sample'); }); it('should have the interpolated text', function() { expect(element(by.binding('text')).getText()).toBe('Hello, world!'); }); it('should insert the ng-cloak styles', function() { ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/ng-jq.spec.js
test/e2e/tests/ng-jq.spec.js
'use strict'; describe('Customizing the jqLite / jQuery version', function() { it('should be able to force jqLite', function() { loadFixture('ng-jq'); expect(element(by.binding('jqueryVersion')).getText()).toBe('jqLite'); }); it('should be able to use a specific version jQuery', function() { loadFix...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/ng-route-promise.spec.js
test/e2e/tests/ng-route-promise.spec.js
'use strict'; describe('ngRoute promises', function() { beforeEach(function() { loadFixture('ng-route-promise'); }); it('should wait for route promises', function() { expect(element.all(by.tagName('li')).count()).toBe(5); }); it('should time out if the promise takes long enough', function(done) { ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/loader.spec.js
test/e2e/tests/loader.spec.js
'use strict'; describe('angular-loader', function() { beforeEach(function() { loadFixture('loader'); }); it('should not be broken by loading the modules before core', function() { expect(element(by.binding('text')).getText()).toBe('Hello, world!'); }); });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/e2e/tests/helpers/main.js
test/e2e/tests/helpers/main.js
'use strict'; var helper = { loadFixture: function(fixture) { var i = 0; while (fixture[i] === '/') ++i; fixture = fixture.slice(i); if (!/\/(index\.html)?$/.test(fixture)) { fixture += '/'; } if (process.env.USE_JQUERY) { fixture += '?jquery'; } browser.get('/e2e/fixtur...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ngAria/ariaSpec.js
test/ngAria/ariaSpec.js
'use strict'; /* globals nativeAriaNodeNames false */ describe('$aria', function() { var scope, $compile, element; beforeEach(module('ngAria')); afterEach(function() { dealoc(element); }); describe('with `ngAriaDisable`', function() { beforeEach(injectScopeAndCompiler); beforeEach(function() ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/localeSpec.js
test/ng/localeSpec.js
'use strict'; describe('$locale', function() { /* global $LocaleProvider: false */ var $locale; beforeEach(inject(function(_$locale_) { $locale = _$locale_; })); it('should have locale id set to en-us', function() { expect($locale.id).toBe('en-us'); }); it('should have NUMBER_FORMATS', functi...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/logSpec.js
test/ng/logSpec.js
/* global $LogProvider: false */ 'use strict'; describe('$log', function() { var $window, logger, log, warn, info, error, debug; beforeEach(module(function($provide) { $window = { navigator: {userAgent: window.navigator.userAgent}, document: {} }; logger = ''; log = function() { logger...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/locationSpec.js
test/ng/locationSpec.js
/* global LocationHashbangUrl: false, LocationHtml5Url: false */ 'use strict'; describe('$location', function() { // Mock out the $log function - see testabilityPatch.js beforeEach(module(provideLog)); afterEach(function() { // link rewriting used in html5 mode on legacy browsers binds to document.onClick,...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/exceptionHandlerSpec.js
test/ng/exceptionHandlerSpec.js
'use strict'; describe('$exceptionHandler', function() { /* global $ExceptionHandlerProvider:false */ it('should log errors with single argument', function() { module(function($provide) { $provide.provider('$exceptionHandler', $ExceptionHandlerProvider); }); inject(function($log, $exceptionHandle...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/httpBackendSpec.js
test/ng/httpBackendSpec.js
/* global createHttpBackend: false, createMockXhr: false, MockXhr: false */ 'use strict'; describe('$httpBackend', function() { var $backend, $browser, $jsonpCallbacks, xhr, fakeDocument, callback; beforeEach(inject(function($injector) { $browser = $injector.get('$browser'); fakeDocument = { ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/qSpec.js
test/ng/qSpec.js
/* global qFactory: false */ 'use strict'; /** http://wiki.commonjs.org/wiki/Promises http://www.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript Q: https://github.com/kriskowal/q https://github.com/kriskowal/q/blob/master/design/README....
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/sanitizeUriSpec.js
test/ng/sanitizeUriSpec.js
'use strict'; /* eslint-disable no-script-url */ describe('sanitizeUri', function() { var sanitizeHref, sanitizeImg, sanitizeUriProvider, testUrl; beforeEach(function() { module(function(_$$sanitizeUriProvider_) { sanitizeUriProvider = _$$sanitizeUriProvider_; }); inject(function($$sanitizeUri) ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/testabilitySpec.js
test/ng/testabilitySpec.js
'use strict'; describe('$$testability', function() { describe('finding elements', function() { var $$testability, $compile, scope, element; beforeEach(inject(function(_$$testability_, _$compile_, $rootScope) { $$testability = _$$testability_; $compile = _$compile_; scope = $rootScope.$new(...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/controllerSpec.js
test/ng/controllerSpec.js
'use strict'; describe('$controller', function() { var $controllerProvider, $controller; beforeEach(module(function(_$controllerProvider_) { $controllerProvider = _$controllerProvider_; })); beforeEach(inject(function(_$controller_) { $controller = _$controller_; })); describe('provider', func...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/sceSpecs.js
test/ng/sceSpecs.js
'use strict'; /* eslint-disable no-script-url */ describe('SCE', function() { describe('when disabled', function() { beforeEach(function() { module(function($sceProvider) { $sceProvider.enabled(false); }); }); it('should provide the getter for enabled', inject(function($sce) { ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/windowSpec.js
test/ng/windowSpec.js
'use strict'; describe('$window', function() { it('should inject $window', inject(function($window) { expect($window).toBe(window); })); it('should be able to mock $window without errors', function() { module({$window: {}}); inject(['$sce', angular.noop]); }); });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/cacheFactorySpec.js
test/ng/cacheFactorySpec.js
'use strict'; describe('$cacheFactory', function() { it('should be injected', inject(function($cacheFactory) { expect($cacheFactory).toBeDefined(); })); it('should return a new cache whenever called', inject(function($cacheFactory) { var cache1 = $cacheFactory('cache1'); var cache2 = $cacheFactory...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/ngPropSpec.js
test/ng/ngPropSpec.js
'use strict'; /* eslint-disable no-script-url */ describe('ngProp*', function() { it('should bind boolean properties (input disabled)', inject(function($rootScope, $compile) { var element = $compile('<button ng-prop-disabled="isDisabled">Button</button>')($rootScope); $rootScope.$digest(); expect(elemen...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/timeoutSpec.js
test/ng/timeoutSpec.js
'use strict'; describe('$timeout', function() { beforeEach(module(provideLog)); it('should delegate functions to $browser.defer', inject(function($timeout, $browser) { var counter = 0; $timeout(function() { counter++; }); expect(counter).toBe(0); $browser.defer.flush(); expect(counter).toB...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/rootScopeSpec.js
test/ng/rootScopeSpec.js
'use strict'; describe('Scope', function() { beforeEach(module(provideLog)); describe('$root', function() { it('should point to itself', inject(function($rootScope) { expect($rootScope.$root).toEqual($rootScope); expect($rootScope.hasOwnProperty('$root')).toBeTruthy(); })); it('should ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/anchorScrollSpec.js
test/ng/anchorScrollSpec.js
'use strict'; describe('$anchorScroll', function() { var elmSpy; function createMockWindow() { return function() { module(function($provide) { elmSpy = {}; var mockedWin = { scrollTo: jasmine.createSpy('$window.scrollTo'), scrollBy: jasmine.createSpy('$window.scroll...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/animateSpec.js
test/ng/animateSpec.js
'use strict'; describe('$animate', function() { describe('without animation', function() { var element, $rootElement; beforeEach(module(function() { return function($compile, _$rootElement_, $rootScope) { element = $compile('<div></div>')($rootScope); $rootElement = _$rootElement_; ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/documentSpec.js
test/ng/documentSpec.js
'use strict'; describe('$document', function() { it('should inject $document', inject(function($document) { expect($document).toEqual(jqLite(window.document)); })); it('should be able to mock $document object', function() { module({$document: {}}); inject(function($httpBackend, $http) { $ht...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/ngOnSpec.js
test/ng/ngOnSpec.js
'use strict'; describe('ngOn* event binding', function() { it('should add event listener of specified name', inject(function($compile, $rootScope) { $rootScope.name = 'Misko'; var element = $compile('<span ng-on-foo="name = name + 3"></span>')($rootScope); element.triggerHandler('foo'); expect($rootS...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/forceReflowSpec.js
test/ng/forceReflowSpec.js
'use strict'; describe('$$forceReflow', function() { it('should issue a reflow by touching the `document.body.client` when no param is provided', function() { module(function($provide) { var doc = jqLite('<div></div>'); doc[0].body = {}; doc[0].body.offsetWidth = 10; $provide.value('$docu...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/interpolateSpec.js
test/ng/interpolateSpec.js
'use strict'; /* eslint-disable no-script-url */ describe('$interpolate', function() { it('should return the interpolation object when there are no bindings and textOnly is undefined', inject(function($interpolate) { var interpolateFn = $interpolate('some text'); expect(interpolateFn.exp).toBe('some...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/urlUtilsSpec.js
test/ng/urlUtilsSpec.js
'use strict'; describe('urlUtils', function() { describe('urlResolve', function() { it('should returned already parsed URLs unchanged', function() { var urlObj = urlResolve('/foo?bar=baz#qux'); expect(urlResolve(urlObj)).toBe(urlObj); expect(urlResolve(true)).toBe(true); expect(urlResolve...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/animateRunnerSpec.js
test/ng/animateRunnerSpec.js
'use strict'; describe('$$animateAsyncRun', function() { it('should fire the callback only when one or more RAFs have passed', inject(function($$animateAsyncRun, $$rAF) { var trigger = $$animateAsyncRun(); var called = false; trigger(function() { called = true; }); expect(called).toBe...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/browserSpecs.js
test/ng/browserSpecs.js
'use strict'; /* global getHash:true, stripHash:true */ var historyEntriesLength; var sniffer = {}; function MockWindow(options) { if (typeof options !== 'object') { options = {}; } var events = {}; var timeouts = this.timeouts = []; var locationHref = window.document.createElement('a'); var committe...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/rafSpec.js
test/ng/rafSpec.js
'use strict'; describe('$$rAF', function() { it('should queue and block animation frames', inject(function($$rAF) { if (!$$rAF.supported) return; var message; $$rAF(function() { message = 'yes'; }); expect(message).toBeUndefined(); $$rAF.flush(); expect(message).toBe('yes'); }))...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/intervalSpec.js
test/ng/intervalSpec.js
'use strict'; describe('$interval', function() { /* global $IntervalProvider: false */ beforeEach(module(function($provide) { var repeatFns = [], nextRepeatId = 0, now = 0, $window; $window = { setInterval: function(fn, delay, count) { repeatFns.push({ next...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/snifferSpec.js
test/ng/snifferSpec.js
'use strict'; describe('$sniffer', function() { function sniffer($window, $document) { /* global $SnifferProvider: false */ $window.navigator = $window.navigator || {}; $document = jqLite($document || {}); if (!$document[0].body) { $document[0].body = window.document.body; } return new ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/cookieReaderSpec.js
test/ng/cookieReaderSpec.js
'use strict'; describe('$$cookieReader', function() { var $$cookieReader, document; describe('with access to `document.cookie`', function() { function deleteAllCookies() { var cookies = document.cookie.split(';'); var path = window.location.pathname; for (var i = 0; i < cookies.length; i+...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/filterSpec.js
test/ng/filterSpec.js
'use strict'; describe('$filter', function() { var $filterProvider, $filter; beforeEach(module(function(_$filterProvider_) { $filterProvider = _$filterProvider_; })); beforeEach(inject(function(_$filter_) { $filter = _$filter_; })); describe('provider', function() { it('should allow registra...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/compileSpec.js
test/ng/compileSpec.js
'use strict'; /* eslint-disable no-script-url */ describe('$compile', function() { var document = window.document; function isUnknownElement(el) { return !!el.toString().match(/Unknown/); } function isSVGElement(el) { return !!el.toString().match(/SVG/); } function isHTMLElement(el) { retur...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/animateCssSpec.js
test/ng/animateCssSpec.js
'use strict'; describe('$animateCss', function() { var triggerRAF, element; beforeEach(inject(function($$rAF, $rootElement, $document) { triggerRAF = function() { $$rAF.flush(); }; var body = jqLite($document[0].body); element = jqLite('<div></div>'); $rootElement.append(element); b...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/templateRequestSpec.js
test/ng/templateRequestSpec.js
'use strict'; describe('$templateRequest', function() { describe('provider', function() { describe('httpOptions', function() { it('should default to undefined and fallback to default $http options', function() { var defaultHeader; module(function($templateRequestProvider) { e...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/jsonpCallbacksSpec.js
test/ng/jsonpCallbacksSpec.js
'use strict'; describe('$jsonpCallbacks', function() { describe('createCallback(url)', function() { it('should return a new unique path to a callback function on each call', inject(function($jsonpCallbacks) { var path = $jsonpCallbacks.createCallback('http://some.dummy.com/jsonp/request'); expect(p...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/httpSpec.js
test/ng/httpSpec.js
'use strict'; /* global MockXhr: false */ // The http specs run against the mocked httpBackend describe('$http', function() { var callback, mockedCookies; var customParamSerializer = function(params) { return Object.keys(params).join('_'); }; beforeEach(module(function($exceptionHandlerProvider) { ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/rootElementSpec.js
test/ng/rootElementSpec.js
'use strict'; describe('$rootElement', function() { it('should publish the bootstrap element into $rootElement', function() { var element = jqLite('<div></div>'); var injector = angular.bootstrap(element); expect(injector.get('$rootElement')[0]).toBe(element[0]); dealoc(element); }); });
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/parseSpec.js
test/ng/parseSpec.js
'use strict'; // This file has many tests which read nicely if constant conditions // are used. /* eslint-disable no-constant-condition */ describe('parser', function() { describe('lexer', function() { var lex; beforeEach(function() { /* global Lexer: false */ lex = function() { var le...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/filter/orderBySpec.js
test/ng/filter/orderBySpec.js
'use strict'; describe('Filter: orderBy', function() { var orderBy, orderByFilter; beforeEach(inject(function($filter) { orderBy = orderByFilter = $filter('orderBy'); })); describe('(Arrays)', function() { it('should throw an exception if no array-like object is provided', function() { expect(f...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/filter/filterSpec.js
test/ng/filter/filterSpec.js
'use strict'; describe('Filter: filter', function() { var filter; beforeEach(inject(function($filter) { filter = $filter('filter'); })); it('should filter by string', function() { var items = ['MIsKO', {name: 'shyam'}, ['adam'], 1234]; expect(filter(items, '').length).toBe(4); expect(filter(...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/filter/limitToSpec.js
test/ng/filter/limitToSpec.js
'use strict'; describe('Filter: limitTo', function() { var items; var str; var number; var arrayLike; var limitTo; beforeEach(inject(function($filter) { items = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; str = 'tuvwxyz'; number = 100.045; arrayLike = { 0: 'a', 1: 'b', 2: '...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/filter/filtersSpec.js
test/ng/filter/filtersSpec.js
'use strict'; describe('filters', function() { var filter; beforeEach(inject(function($filter) { filter = $filter; })); it('should call the filter when evaluating expression', function() { var filter = jasmine.createSpy('myFilter'); createInjector(['ng', function($filterProvider) { $filterP...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngClickSpec.js
test/ng/directive/ngClickSpec.js
'use strict'; describe('ngClick', function() { var element; afterEach(function() { dealoc(element); }); it('should get called on a click', inject(function($rootScope, $compile) { element = $compile('<div ng-click="clicked = true"></div>')($rootScope); $rootScope.$digest(); expect($rootScope.c...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngIfSpec.js
test/ng/directive/ngIfSpec.js
'use strict'; describe('ngIf', function() { describe('basic', function() { var $scope, $compile, element, $compileProvider; beforeEach(module(function(_$compileProvider_) { $compileProvider = _$compileProvider_; })); beforeEach(inject(function($rootScope, _$compile_) { $scope = $rootSco...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngChangeSpec.js
test/ng/directive/ngChangeSpec.js
'use strict'; /* globals generateInputCompilerHelper: false */ describe('ngChange', function() { var helper = {}, $rootScope; generateInputCompilerHelper(helper); beforeEach(inject(function(_$rootScope_) { $rootScope = _$rootScope_; })); it('should $eval expression after new value is set in the mode...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngRepeatSpec.js
test/ng/directive/ngRepeatSpec.js
'use strict'; describe('ngRepeat', function() { var element, $compile, scope, $exceptionHandler, $compileProvider; beforeEach(module(function(_$compileProvider_) { $compileProvider = _$compileProvider_; })); beforeEach(module(function($exceptionHandlerProvider) { $exceptionHandlerProvider.mode('log'...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngControllerSpec.js
test/ng/directive/ngControllerSpec.js
'use strict'; describe('ngController', function() { var element; beforeEach(module(function($controllerProvider) { $controllerProvider.register('PublicModule', function() { this.mark = 'works'; }); var Greeter = function($scope) { // private stuff (not exported to scope) this.prefix...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/styleSpec.js
test/ng/directive/styleSpec.js
'use strict'; describe('style', function() { var element; afterEach(function() { dealoc(element); }); it('should compile style element without binding', inject(function($compile, $rootScope) { element = jqLite('<style type="text/css">.header{font-size:1.5em; h3{font-size:1.5em}}</style>'); $com...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngEventDirsSpec.js
test/ng/directive/ngEventDirsSpec.js
'use strict'; describe('event directives', function() { var element; afterEach(function() { dealoc(element); }); describe('ngSubmit', function() { it('should get called on form submit', inject(function($rootScope, $compile) { element = $compile( '<form action="/foo" ng-submit="submit...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngSwitchSpec.js
test/ng/directive/ngSwitchSpec.js
'use strict'; describe('ngSwitch', function() { var element; afterEach(function() { dealoc(element); }); it('should switch on value change', inject(function($rootScope, $compile) { element = $compile( '<div ng-switch="select">' + '<div ng-switch-when="1">first:{{name}}</div>' + ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
false
angular/angular.js
https://github.com/angular/angular.js/blob/d8f77817eb5c98dec5317bc3756d1ea1812bcfbe/test/ng/directive/ngOptionsSpec.js
test/ng/directive/ngOptionsSpec.js
'use strict'; describe('ngOptions', function() { var scope, formElement, element, $compile, linkLog, childListMutationObserver, ngModelCtrl; function compile(html) { formElement = jqLite('<form name="form">' + html + '</form>'); element = formElement.find('select'); $compile(formElement)(scope); ...
javascript
MIT
d8f77817eb5c98dec5317bc3756d1ea1812bcfbe
2026-01-04T14:56:54.449246Z
true