OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var AssertTrue = requireNative('assert').AssertTrue; | 5 var AssertTrue = requireNative('assert').AssertTrue; |
6 var JSONSchemaValidator = require('json_schema').JSONSchemaValidator; | 6 var JSONSchemaValidator = require('json_schema').JSONSchemaValidator; |
7 var LOG = requireNative('logging').LOG; | 7 var LOG = requireNative('logging').LOG; |
8 | 8 |
9 function assertValid(type, instance, schema, types) { | 9 function assertValid(type, instance, schema, types) { |
10 var validator = new JSONSchemaValidator(); | 10 var validator = new JSONSchemaValidator(); |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 exports.testArrayNonTuple = testArrayNonTuple; | 659 exports.testArrayNonTuple = testArrayNonTuple; |
660 exports.testString = testString; | 660 exports.testString = testString; |
661 exports.testNumber = testNumber; | 661 exports.testNumber = testNumber; |
662 exports.testIntegerBounds = testIntegerBounds; | 662 exports.testIntegerBounds = testIntegerBounds; |
663 exports.testType = testType; | 663 exports.testType = testType; |
664 exports.testTypeReference = testTypeReference; | 664 exports.testTypeReference = testTypeReference; |
665 exports.testGetAllTypesForSchema = testGetAllTypesForSchema; | 665 exports.testGetAllTypesForSchema = testGetAllTypesForSchema; |
666 exports.testIsValidSchemaType = testIsValidSchemaType; | 666 exports.testIsValidSchemaType = testIsValidSchemaType; |
667 exports.testCheckSchemaOverlap = testCheckSchemaOverlap; | 667 exports.testCheckSchemaOverlap = testCheckSchemaOverlap; |
668 exports.testInstanceOf = testInstanceOf; | 668 exports.testInstanceOf = testInstanceOf; |
OLD | NEW |