| 1 | // Copyright 2013 Software Freedom Conservancy |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | /** |
| 16 | * @fileoverview Defines a library that simplifies writing assertions against |
| 17 | * promised values. |
| 18 | * |
| 19 | * <blockquote> |
| 20 | * <hr> |
| 21 | * <b>NOTE:</b> This module is considered experimental and is subject to |
| 22 | * change, or removal, at any time! |
| 23 | * <hr> |
| 24 | * </blockquote> |
| 25 | * |
| 26 | * Sample usage: |
| 27 | * <pre><code> |
| 28 | * var driver = new webdriver.Builder().build(); |
| 29 | * driver.get('http://www.google.com'); |
| 30 | * |
| 31 | * assert(driver.getTitle()).equalTo('Google'); |
| 32 | * </code></pre> |
| 33 | */ |
| 34 | |
| 35 | var base = require('../_base'), |
| 36 | assert = base.require('webdriver.testing.assert'); |
| 37 | |
| 38 | |
| 39 | // PUBLIC API |
| 40 | |
| 41 | |
| 42 | /** @type {webdriver.testing.assert.} */ |
| 43 | module.exports = assert; |