This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/isomorphic/classic/types/ReactPropTypes.js:132 | |
Strict equal of different types: true (boolean) === "red" (string) | |
Strict equal of different types: true (boolean) === "blue" (string) | |
Strict equal of different types: [] (Array) === "red" (string) | |
Strict equal of different types: [] (Array) === "blue" (string) | |
Strict equal of different types: false (boolean) === 0 (number) | |
Strict equal of different types: false (boolean) === "false" (string) | |
Strict equal of different types: NaN === "red" (string) | |
Strict equal of different types: NaN === "blue" (string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before: | |
if (x === y) { ... } | |
// after: | |
if (strictEqual(x, y)) { ... } | |
function strictEqual(a, b) { | |
if (typeof a !== typeof b) { | |
console.warn('Strict compare of different types: ' + (typeof a) + ' === ' + (typeof b)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Unbundle samsung msf library: | |
* node msf-unbundle | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); | |
const mkdirp = require('mkdirp'); | |
const { SourceMapConsumer } = require('source-map'); | |
const filename = './dist/msf-2.3.2.min.js.map'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webdriver = require('selenium-webdriver'), | |
By = webdriver.By, | |
until = webdriver.until, | |
test = require('selenium-webdriver/testing'); | |
test.describe('Google Search (selenium compatible)', function () { | |
var driver; | |
test.before(function () { | |
var capabilities = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Typeahead input (bootstrap only). Based on Twitter Bootstrap [typeahead](http://twitter.github.com/bootstrap/javascript.html#typeahead). | |
Depending on `source` format typeahead operates in two modes: | |
* **strings**: | |
When `source` defined as array of strings, e.g. `['text1', 'text2', 'text3' ...]`. | |
User can submit one of these strings or any text entered in input (even if it is not matching source). | |
* **objects**: | |
When `source` defined as array of objects, e.g. `[{value: 1, text: "text1"}, {value: 2, text: "text2"}, ...]`. |
NewerOlder