Test.Adapter

Ember.Test.Adapter Class

PUBLIC

Defined in: packages/ember-testing/lib/adapters/adapter.js:10

Module: ember-testing

The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.

asyncEndpublic

Defined in packages/ember-testing/lib/adapters/adapter.js:30

This callback will be called whenever an async operation has completed.

asyncStartpublic

Defined in packages/ember-testing/lib/adapters/adapter.js:19

This callback will be called whenever an async operation is about to start.

Override this to call your framework's methods that handle async operations.

exception (error) public

Defined in packages/ember-testing/lib/adapters/adapter.js:38

Override this method with your testing framework's false assertion. This function is called whenever an exception occurs causing the testing promise to fail.

QUnit example:

  exception: function(error) {
    ok(false, error);
  };

Parameters:

error String
The exception to be raised.

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://emberjs.com/api/classes/Ember.Test.Adapter.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部