Lines Matching refs:function
41 (function() {
44 function PostMicrotask(fn) {
46 Object.observe(o, function() {
59 function Run() {
60 function current() {
79 RunAllTests = function() {
90 function TestCase(name, before, fn, after, isRegular) {
99 TestCase.prototype.RunFunction = function(suite, fn, postAction) {
118 TestCase.prototype.MarkAsDone = function() {
123 TestCase.prototype.Run = function(suite, postAction) {
127 this.timer = setTimeout(function() {
131 this.RunFunction(suite, this.before, function(e) {
141 this.RunFunction(suite, this.fn, function(e) {
151 this.RunFunction(suite, this.after, function(e) {
171 function TestSuite(described) {
194 TestSuite.prototype.Run = function() {
202 this.cases[this.currentIndex].Run(this, function() {
208 TestSuite.prototype.numRegularTestCases = function() {
218 TestSuite.prototype.ReportError = function(testCase, e) {
230 describe = function(description, fn) {
244 specify = it = function(description, fn) {
248 before = function(fn) {
252 after = function(fn) {
256 beforeEach = function(fn) {
260 afterEach = function(fn) {