File: es.string.blink.js

package info (click to toggle)
node-core-js 3.33.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,828 kB
  • sloc: javascript: 87,204; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
QUnit.test('String#blink', assert => {
  const { blink } = String.prototype;
  assert.isFunction(blink);
  assert.arity(blink, 0);
  assert.name(blink, 'blink');
  assert.looksNative(blink);
  assert.nonEnumerable(String.prototype, 'blink');
  assert.same('a'.blink(), '<blink>a</blink>', 'lower case');

  if (typeof Symbol == 'function' && !Symbol.sham) {
    assert.throws(() => blink.call(Symbol('blink test')), 'throws on symbol context');
  }
});