LCOV - app.info - js/src/jsapi-tests/selfTest.cpp

LCOV - code coverage report
| Current view: | directory - js/src/jsapi-tests - selfTest.cpp (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 12 | 12 | 100.0 %
| Date: | 2012-04-07 | Functions: | 13 | 10 | 76.9 %

           1                 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
           2                 :  * vim: set ts=8 sw=4 et tw=99:
           3                 :  */
           4                 :
           5                 : #include "tests.h"
           6                 :
           7               4 : BEGIN_TEST(selfTest_NaNsAreSame)
           8                 : {
           9               2 :     jsvalRoot v1(cx), v2(cx);
          10               1 :     EVAL("0/0", v1.addr());  // NaN
          11               1 :     CHECK_SAME(v1, v1);
          12                 :
          13               1 :     EVAL("Math.sin('no')", v2.addr());  // also NaN
          14               1 :     CHECK_SAME(v1, v2);
          15               1 :     return true;
          16                 : }
          17               1 : END_TEST(selfTest_NaNsAreSame)
          18                 :
          19               4 : BEGIN_TEST(selfTest_globalHasNoParent)
          20                 : {
          21               1 :     CHECK(JS_GetParent(global) == NULL);
          22               1 :     return true;
          23                 : }
          24               3 : END_TEST(selfTest_globalHasNoParent)

Generated by: LCOV version 1.7