MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 33,084 callersFunctionexpect
* @param {*} actual * @param {string=} opt_message * @return {!Chai.Assertion}
build-system/tasks/e2e/expect.js:29
↓ 7,520 callersFunctionit
(e,i,o)
examples/amp-script/vue-todomvc.js:7
↓ 5,041 callersFunctionit
(n,t,e)
third_party/d3/d3.js:1
↓ 5,004 callersMethodthen
* Chains to the motion's promise that will resolve when the motion has * completed or will reject if motion has failed or was interrupted. * @ov
src/motion.js:178
↓ 3,217 callersMethodsetAttribute
* @param {!Node} node * @param {string} attribute * @param {?string} value * @return {boolean}
extensions/amp-script/0.1/amp-script.js:788
↓ 2,547 callersMethodresolve
* Resolves the value of all variable components. Only performs any work if * variable components exist. As an optimization, this node is returned
extensions/amp-animation/0.1/parsers/css-expr-ast.js:132
↓ 2,488 callersMethodgetAttribute
(key)
test/unit/core/dom/test-propagate-attributes.js:13
↓ 1,714 callersFunctionbeforeEach
()
test/unit/test-form-data-wrapper.js:18
↓ 1,127 callersMethodforEach
* Iterates over all tasks in queue in the insertion order. * @param {function(!TaskDef)} callback
src/service/task-queue.js:126
↓ 1,112 callersFunctiondev
()
src/utils/log.js:607
↓ 879 callersMethodpush
* Pushes new state into history stack with an optional callback to be called * when this state is popped as well as an object with updates to be ap
src/service/history-impl.js:84
↓ 843 callersMethodtick
* Ticks a timing event. * * @param {TickLabel_Enum} label The variable name as it will be reported. * See TICKEVENTS.md for available met
src/service/performance-impl.js:799
↓ 752 callersMethodsetAttribute
(key, value)
test/unit/core/dom/test-propagate-attributes.js:9
↓ 652 callersFunctionuser
(opt_element)
src/utils/log.js:567
↓ 632 callersMethodgetImpl
* Returns reference to upgraded implementation. * @param {boolean} waitForBuild If true, waits for element to be built before * resolving
src/custom-element.js:1570
↓ 626 callersMethodlength
* The number of items in the queue. * @return {number}
src/core/data-structures/priority-queue.js:99
↓ 611 callersFunctionregister
(id, draw)
3p/3p.js:41
↓ 582 callersMethodreplace
* @param {string} href
testing/fake-dom.js:496
↓ 564 callersFunctionuserAssert
( shouldBeTrueish, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8,
src/utils/log.js:727
↓ 529 callersMethodadd
* @param {!Element} unusedContext * @param {string} unusedEventType * @param {!JsonObject} unusedConfig * @param {function(!AnalyticsEvent)}
extensions/amp-analytics/0.1/events.js:322
↓ 524 callersMethodassertElement
* Throws an error if the first argument isn't an Element * * Otherwise see `assert` for usage * * @param {*} shouldBeElement * @param {
src/utils/log.js:414
↓ 519 callersMethodstringify
* Reconstructs the string expression for this srcset. * @param {function(string):string=} opt_mapper * @return {string}
src/core/dom/srcset.js:231
↓ 513 callersFunctionmacroTask
(setTimeoutFunc = setTimeout)
testing/helpers/index.js:40
↓ 499 callersMethodpush
* Indicate that an activity took place at the given time. * @param {ActivityEventDef} activityEvent
extensions/amp-analytics/0.1/activity-impl.js:72
↓ 453 callersFunctioncreateElementWithAttributes
(doc, tagName, attributes)
src/core/dom/index.js:171
↓ 423 callersMethodgetAmpDoc
* Returns the associated ampdoc. Only available when `buildCallback` and * going forward. It throws an exception before `buildCallback`. * @retu
src/base-element.js:347
↓ 417 callersMethodnow
()
testing/fake-dom.js:775
↓ 413 callersMethoderror
* Reports an error message. * @param {string} tag * @param {...*} args
src/utils/log.js:269
↓ 406 callersFunctiondevAssert
( shouldBeTrueish, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8,
src/utils/log.js:658
↓ 398 callersMethodfindElement
* This waits for an element to become available similar to Selenium's * until.js#elementLocated * {@link https://github.com/SeleniumHQ/selenium/
build-system/tasks/e2e/selenium-webdriver-controller.js:115
↓ 394 callersMethodtest
(param = 1)
build-system/babel-plugins/babel-plugin-transform-default-assignment/test/fixtures/transform-assertions/should-transform-param/input.js:6
↓ 377 callersFunctionafterEach
()
test/unit/test-form-data-wrapper.js:28
↓ 375 callersFunctionevaluate
* @param {string} expression * @param {Object=} opt_scope * @return {*}
extensions/amp-bind/0.1/test/test-bind-expression.js:14
↓ 373 callersMethodclick
(selectorOrElement)
testing/helpers/service.js:339
↓ 367 callersFunctionhtml
* A tagged template literal helper to generate static DOM trees. * This must be used as a tagged template, ie * * ``` * const div = html`<div><spa
src/core/dom/static-template.js:72
↓ 360 callersFunctioncyan
* Formats the text to appear cyan * * @param {*} text * @return {string}
build-system/common/check-package-manager.js:64
↓ 358 callersMethodbuildInternal
* Requests or requires the element to be built. The build is done by * invoking {@link BaseElement.buildCallback} method. * * Can only
src/custom-element.js:510
↓ 350 callersMethodget
* @param {string} key * @param {boolean=} useLocalStorage * @return {!Promise<?string>}
third_party/subscriptions-project/swg.js:18737
↓ 333 callersMethoddispatch
* Dispatches an action and triggers the listeners for the updated state * properties. * @param {!Action} action * @param {*} data
extensions/amp-story/1.0/amp-story-store-service.js:576
↓ 330 callersMethodparse
* Parses the URL in the context of the current document. * * @param {string} url * @param {boolean=} opt_nocache * Cache is always ignor
src/service/url-impl.js:45
↓ 327 callersFunctionlayoutRectLtwh
(left, top, width, height)
src/core/dom/layout/rect.js:82
↓ 318 callersFunctioninit
(win)
3p/integration-lib.js:98
↓ 315 callersMethodcontains
* Determines if the given date is contained within the RRULEs or moment dates * contained in the date list. * @param {!moment|string} date *
extensions/amp-date-picker/0.1/dates-list.js:46
↓ 306 callersMethodapply
* @param {*} resolver
build-system/tasks/storybook/env/react/webpack.config.js:37
↓ 287 callersFunction_interopRequireDefault
(e)
third_party/react-dates/bundle.js:1
↓ 287 callersMethodaddEventListener
* @param {string} eventType * @param {function(!Event):*} handler
extensions/amp-viewer-integration/0.1/messaging/messaging.js:64
↓ 286 callersFunctionvalidateData
(data, mandatoryFields, opt_optionalFields)
3p/3p.js:212
↓ 276 callersFunctionlog
* Logs a message to the console. * * @param {string} mode * @param {!Array<*>} messages
build-system/tasks/visual-diff/log.js:16
↓ 275 callersMethodcatch
@override
build-system/tasks/e2e/controller-promise.js:36
↓ 262 callersMethodthen
* Chains to the animation's promise that will resolve when the animation has * completed or will reject if animation has failed or was interrupted.
src/utils/animation.js:205
↓ 256 callersMethodlog
(string)
validator/js/gulpjs/test/validate.js:194
↓ 256 callersMethodpush
()
build-system/eslint-rules/restrict-this-access.js:26
↓ 253 callersMethodfilter
* @param {!../../../../src/service/action-impl.ActionEventDef} unusedEvent * @return {boolean} Whether the exit is allowed.
extensions/amp-ad-exit/0.1/filters/filter.js:24
↓ 248 callersMethodwarn
* Reports a warning message. * @param {string} tag * @param {...*} args
src/utils/log.js:260
↓ 246 callersFunctionString
(disabled)
extensions/amp-selector/1.0/component.js:358
↓ 246 callersMethodtoString
* Called to return a string representation of * the mutation for logging purposes. * * @return {string}
extensions/amp-experiment/1.0/mutation/mutation.js:29
↓ 245 callersMethodmutateElement
(callback)
extensions/amp-a4a/0.1/test/utils.js:26
↓ 245 callersMethodskip
* @param {function():boolean} fn
testing/test-config.js:79
↓ 234 callersMethodaddEventListener
polyfill addEventListener.
testing/fake-dom.js:266
↓ 226 callersMethodregisterElement
* @param {!Element} element * @public
extensions/amp-video-docking/0.1/amp-video-docking.js:485
↓ 218 callersMethodgetElementById
* Locates an element with the specified ID within the ampdoc. In the * shadow-doc mode, when multiple documents could be present, this method *
src/service/ampdoc-impl.js:542
↓ 215 callersMethodadd
* @param {string} type * @param {function(!Event)} handler * @param {(boolean|!Object)=} captureOrOpts
testing/fake-dom.js:350
↓ 215 callersFunctionloadScript
(win, url, opt_cb, opt_errorCb)
3p/3p.js:85
↓ 214 callersFunctiontoggleExperiment
( win, experimentId, opt_on, opt_transientExperiment )
src/experiments/index.js:77
↓ 204 callersFunctionmount
* Dispatches a mount event for the given node and children. * * @param {Node} node - the node to mount. * @return {node}
third_party/set-dom/set-dom.js:277
↓ 194 callersMethodgetElementById
* Returns the element with the specified ID in the scope of this root. * * @param {string} unusedId * @return {?Element} * @abstract
extensions/amp-analytics/0.1/analytics-root.js:128
↓ 194 callersFunctionparsePseudo
* @param {string} cssString * @return {string}
extensions/amp-animation/0.1/test/test-css-expr-parser.js:9
↓ 193 callersMethodevaluate
* Evaluate access expressions, but turn to a cache first. * Cache is invalidated when given new data. * * @param {string} expr * @param {!
extensions/amp-access/0.1/access-expr.js:56
↓ 193 callersMethodfine
* Reports a fine-grained message. * @param {string} tag * @param {...*} args
src/utils/log.js:242
↓ 193 callersFunctiongetMode
(opt_win)
src/mode.js:32
↓ 193 callersMethodremove
* Unsets the input value for the specified property and setter. * See `set()` for more info. * @param {IContextProp<T, ?>} prop * @param {fun
src/core/context/values.js:145
↓ 188 callersFunctionhtmlFor
(nodeOrDoc)
src/core/dom/static-template.js:16
↓ 184 callersMethodget
* @return {!StoryVariableDef}
extensions/amp-story/1.0/variable-service.js:148
↓ 184 callersFunctionresolve
(e)
third_party/react-dates/bundle.js:1
↓ 184 callersFunctiontoArray
(arrayLike)
src/core/types/array.js:7
↓ 181 callersFunctionlisten
(element, eventType, listener, opt_evtListenerOpts)
src/utils/event-helper.js:49
↓ 181 callersFunctionparseUrlDeprecated
(url, opt_nocache)
src/url.js:77
↓ 175 callersFunctionwaitFor
(callback, errorMessage)
testing/helpers/service.js:82
↓ 174 callersMethodconcat
* Concatenates two sets of expressions. * @param {!CssNode} nodeOrSet * @param {!CssNode} otherNodeOrSet * @return {!CssConcatNode}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:210
↓ 172 callersMethodcss
* Returns a string CSS representation. * @return {string} * @abstract
extensions/amp-animation/0.1/parsers/css-expr-ast.js:120
↓ 172 callersFunctionsetStyle
(element, property, value, opt_units, opt_bypassCache)
src/core/dom/style.js:127
↓ 166 callersMethodset
* @param {string} key * @param {string} value * @param {boolean=} useLocalStorage * @return {!Promise}
third_party/subscriptions-project/swg.js:18764
↓ 166 callersFunctionsetStyles
(element, styles)
src/core/dom/style.js:168
↓ 164 callersMethodverify
* Extracts a cryptographic signature from `headers` and attempts to verify * that it's the correct cryptographic signature for `creative`. *
extensions/amp-a4a/0.1/signature-verifier.js:155
↓ 162 callersMethodgetElementProperty
* Gets the element property. Note that this is different * than getElementAttribute() * @param {!ElementHandle<!WebElement>} handle * @param
build-system/tasks/e2e/selenium-webdriver-controller.js:356
↓ 160 callersMethodexecuteAction
* Executes action for the local platform. * @param {string} unusedAction * @param {?string} unusedSourceId * @return {!Promise<boolean>}
extensions/amp-subscriptions/0.1/subscription-platform.js:82
↓ 158 callersMethodinfo
* Reports a informational message. * @param {string} tag * @param {...*} args
src/utils/log.js:251
↓ 157 callersMethodon
* @param {!function(new: T)} message * @param {function(?)} callback * @template T
third_party/subscriptions-project/swg.js:3984
↓ 156 callersFunctiontoggle
(element, opt_display)
src/core/dom/style.js:202
↓ 153 callersMethodreport
* Called to report validation errors.
extensions/amp-form/0.1/form-validators.js:92
↓ 151 callersMethodpop
* Pops a previously pushed state from the history stack. If onPop callback * has been registered, it will be called with the state that was associa
src/service/history-impl.js:105
↓ 150 callersFunctionsetPosition
(top)
extensions/amp-position-observer/0.1/test/test-amp-position-observer.js:51
↓ 148 callersMethodis
* @param {!PageState} state * @return {boolean}
extensions/amp-next-page/1.0/page.js:119
↓ 147 callersFunctiongreen
* Formats the text to appear green * * @param {*} text * @return {string}
build-system/common/check-package-manager.js:73
↓ 144 callersMethodget
* Get the LINKER_PARAM(name, id) value from url and clean the value * @param {string} name * @param {string} id * @return {?string}
extensions/amp-analytics/0.1/linker-reader.js:31
↓ 144 callersFunctiongetWaitFunction
* Simulate the WebDriver polling functionality to get the latest value * and mutate it with any `then` blocks that have been chained to the * Contro
test/e2e/test-expect.js:1606
↓ 144 callersFunctionn
(e)
examples/amp-script/vue-todomvc.js:7
↓ 142 callersMethodisConst
* Whether the CSS node is a constant or includes variable components. * @param {boolean} unusedNormalize * @return {boolean} * @protected
extensions/amp-animation/0.1/parsers/css-expr-ast.js:145
↓ 141 callersFunctionlistenOncePromise
( element, eventType, opt_evtListenerOpts, opt_cancel )
src/utils/event-helper.js:115
↓ 140 callersFunctiongetArrayValueFunction
* Returns a method that resolves each of its given arguments * @return {function():!Promise<T>} * @template T
test/e2e/test-expect.js:1589
next →1–100 of 18,703, ranked by callers