Bug 888088 (part 5) - Fix #include ordering in js/src/jsapi-tests/. r=nnethercote.

--HG--
extra : rebase_source : 56497f40602cfe7af70cb8f439861a16f5608135
This commit is contained in:
Emanuel Hoogeveen 2013-07-23 17:34:18 -07:00
parent b893a5d806
commit 2be33a9b7f
53 changed files with 72 additions and 91 deletions

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(selfTest_NaNsAreSame)

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
/* Do the test a bunch of times, because sometimes we seem to randomly

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "vm/Stack-inl.h"

View File

@ -2,9 +2,10 @@
* vim: set ts=8 sts=4 et sw=4 tw=99:
*/
#include "jsapi-tests/tests.h"
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
#define NUM_TEST_BUFFERS 2
#define MAGIC_VALUE_1 3
#define MAGIC_VALUE_2 17

View File

@ -7,10 +7,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsobj.h"
#include "jswrapper.h"
#include "jsapi-tests/tests.h"
#include "jsobjinlines.h"
struct OuterWrapper : js::Wrapper

View File

@ -7,7 +7,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
int called_test_fn;

View File

@ -7,9 +7,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsdbgapi.h"
#include "jsapi-tests/tests.h"
#include "jsdbgapi.h"
BEGIN_TEST(test_cloneScript)
{

View File

@ -4,8 +4,9 @@
#if !defined(JSGC_ROOT_ANALYSIS) && !defined(JSGC_USE_EXACT_ROOTING)
#include "jsapi-tests/tests.h"
#include "jsobj.h"
#include "jsapi-tests/tests.h"
#include "vm/String.h"
#include "jsobjinlines.h"

View File

@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsclass.h"
#include "jsapi-tests/tests.h"
int count = 0;
static JSBool

View File

@ -5,10 +5,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jscntxt.h"
#include "jsdbgapi.h"
#include "jsapi-tests/tests.h"
#include "jsdbgapi.h"
#include "jscntxt.h"
static int callCount[2] = {0, 0};

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(testDeepFreeze_bug535703)

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
static JSBool

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(testDefineProperty_bug564344)

View File

@ -7,9 +7,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsfriendapi.h"
#include "jsdbgapi.h"
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
using namespace js;

View File

@ -8,9 +8,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jscntxt.h"
#include "jsapi-tests/tests.h"
#include "jscntxt.h"
static uint32_t column = 0;

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(testException_bug860435)

View File

@ -5,10 +5,10 @@
#include "mozilla/PodOperations.h"
#include "mozilla/Util.h"
#include "jsapi-tests/tests.h"
#include "jsutil.h"
#include "jsapi-tests/tests.h"
using mozilla::ArrayLength;
using mozilla::PodEqual;

View File

@ -5,16 +5,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include <string.h>
#include <stdarg.h>
#include <string.h>
#include "jscntxt.h"
#include "jsgc.h"
#include "gc/FindSCCs.h"
#include "jsapi-tests/tests.h"
static const unsigned MaxVertices = 10;

View File

@ -2,9 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsfun.h"
#include "jscntxt.h"
#include "jsfun.h"
#include "jsapi-tests/tests.h"
#ifdef MOZ_TRACE_JSCALLS

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(testFunctionProperties)

View File

@ -2,12 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include <stdarg.h>
#include "jsfriendapi.h"
#include "jscntxt.h"
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
#include "vm/ObjectImpl-inl.h"

View File

@ -6,9 +6,10 @@
* Contributor: Igor Bukanov
*/
#include "jsapi-tests/tests.h"
#include "jscntxt.h"
#include "jsapi-tests/tests.h"
static unsigned errorCount = 0;
static void

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#define JSVAL_IS_FALSE(x) ((JSVAL_IS_BOOLEAN(x)) && !(JSVAL_TO_BOOLEAN(x)))

View File

@ -2,9 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "js/HashTable.h"
#include "jsapi-tests/tests.h"
//#define FUZZ

View File

@ -2,9 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "js/HashTable.h"
#include "jsapi-tests/tests.h"
typedef js::HashSet<uint32_t, js::DefaultHasher<uint32_t>, js::SystemAllocPolicy> IntSet;

View File

@ -5,14 +5,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jscntxt.h"
#include "jscompartment.h"
#include "jsnum.h"
#include "jsstr.h"
#include "jsapi-tests/tests.h"
#include "vm/String-inl.h"
using mozilla::ArrayLength;

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "vm/String.h"

View File

@ -2,15 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
/*
* This test exercises the full, deliberately-exposed JSAPI interface to ensure
* that no internal integer typedefs leak out. Include every intentionally
* public header file (and those headers included by them, for completeness),
* even the ones tests.h itself included, to verify this.
*/
#include "js-config.h"
#include "jsapi.h"
#include "jsclass.h"
#include "jscpucfg.h"
@ -29,6 +27,7 @@
#include "js/Utility.h"
#include "js/Value.h"
#include "js/Vector.h"
#include "jsapi-tests/tests.h"
/*
* Verify that our public (and intended to be public, versus being that way

View File

@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsatom.h"
#include "gc/Marking.h"
#include "jsapi-tests/tests.h"
#include "vm/String.h"
using mozilla::ArrayLength;

View File

@ -5,9 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsfun.h" // for js::IsInternalFunctionObject
#include "jsapi-tests/tests.h"
#include "jsfun.h" // for js::IsInternalFunctionObject
#include "jsobjinlines.h"

View File

@ -2,10 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include <limits>
#include <math.h>
#include "jsapi-tests/tests.h"
using namespace std;
struct LooseEqualityFixture : public JSAPITest

View File

@ -5,11 +5,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
#include "jsfriendapi.h"
const size_t N = 1000;
static jsval argv[N];

View File

@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "mozilla/DebugOnly.h"
#include "jsapi-tests/tests.h"
BEGIN_TEST(testOOM)
{
JS::RootedString jsstr(cx, JS_ValueToString(cx, INT_TO_JSVAL(9)));

View File

@ -7,7 +7,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
static JSBool

View File

@ -2,9 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsdbgapi.h"
#include "jsapi-tests/tests.h"
JSPrincipals *sOriginPrincipalsInErrorReporter = NULL;
static void

View File

@ -5,12 +5,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <limits>
#include <math.h>
#include "jsapi-tests/tests.h"
#include "jsstr.h"
#include "jsapi-tests/tests.h"
#include "vm/String.h"
using namespace js;

View File

@ -7,11 +7,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jscntxt.h"
#include "jsapi-tests/tests.h"
#include "jscntxt.h"
static js::ProfileEntry pstack[10];
static uint32_t psize = 0;
static uint32_t max_stack = 0;

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
static int g_counter;

View File

@ -5,12 +5,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jscompartment.h"
#include "jsgc.h"
#include "jsapi-tests/tests.h"
#include "vm/Shape.h"
#include "vm/Shape-inl.h"

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
/*

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
BEGIN_TEST(testSameValue)

View File

@ -5,9 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsdbgapi.h"
#include "jsapi-tests/tests.h"
#include "jsdbgapi.h"
const char code[] =
"xx = 1; \n\

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
struct ScriptObjectFixture : public JSAPITest {

View File

@ -5,7 +5,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
static JSBool

View File

@ -2,9 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsscript.h"
#include "jsapi-tests/tests.h"
BEGIN_TEST(testBug795104)
{
JS::CompileOptions opts(cx);

View File

@ -5,11 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsatom.h"
#include "jsapi-tests/tests.h"
#include "vm/StringBuffer.h"
BEGIN_TEST(testStringBuffer_finishString)

View File

@ -5,11 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include <math.h>
#include "jsapi-tests/tests.h"
#include "vm/NumericConversions.h"
using js::detail::ToIntWidth;

View File

@ -5,9 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsdbgapi.h"
#include "jsapi-tests/tests.h"
#include "jsdbgapi.h"
static int emptyTrapCallCount = 0;

View File

@ -5,9 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
#include "jsfriendapi.h"
using namespace js;

View File

@ -5,10 +5,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsapi.h"
#include "jsstr.h"
#include "js/CharacterEncoding.h"
#include "jsapi-tests/tests.h"
BEGIN_TEST(testUTF8_badUTF8)
{

View File

@ -4,10 +4,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "jsfriendapi.h"
#include "jsscript.h"
#include "jsstr.h"
#include "jsfriendapi.h"
#include "jsapi-tests/tests.h"
#include "jsscriptinlines.h"

View File

@ -5,10 +5,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsapi-tests/tests.h"
#include "js/RootingAPI.h"
#include "jsobj.h"
#include <stdio.h>
#include "jsobj.h"
#include "js/RootingAPI.h"
JSAPITest *JSAPITest::list;
bool JSAPITest::init()

View File

@ -9,20 +9,18 @@
#include "mozilla/Util.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsprvtd.h"
#include "jsalloc.h"
// For js::gc::AutoSuppressGC
#include "jsgc.h"
#include "js/Vector.h"
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jsalloc.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jsgc.h"
#include "jsprvtd.h"
#include "js/Vector.h"
/* Note: Aborts on OOM. */
class JSAPITestString {