web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
565 B

  1. "use strict";
  2. module.exports = function (t, a) {
  3. var x;
  4. a.throws(function () { t(0); }, TypeError, "0");
  5. a.throws(function () { t(false); }, TypeError, "false");
  6. a(t(""), "", "''");
  7. a.throws(function () { t({}); }, TypeError, "Plain Object");
  8. a.throws(
  9. function () {
  10. t(function () {});
  11. },
  12. TypeError,
  13. "Function"
  14. );
  15. a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
  16. a(t((x = { length: 1 })), x, "Array like");
  17. a.throws(function () { t(); }, TypeError, "Undefined");
  18. a.throws(function () { t(null); }, TypeError, "null");
  19. };