Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: trunk/src/chrome/test/data/extensions/json_schema_test.js

Issue 47403003: Revert 231982 "Docserver: Display enum value descriptions in API..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/test/data/extensions/json_schema_test.js
===================================================================
--- trunk/src/chrome/test/data/extensions/json_schema_test.js (revision 232015)
+++ trunk/src/chrome/test/data/extensions/json_schema_test.js (working copy)
@@ -138,17 +138,16 @@
function testEnum() {
var schema = {
- enum: [{"name": "foo"}, 42, false]
+ enum: ["foo", 42, false]
};
assertValid("", "foo", schema);
assertValid("", 42, schema);
assertValid("", false, schema);
- var enum_values = ["foo", 42, false];
assertNotValid("", "42", schema, [formatError("invalidEnum",
- [enum_values.join(", ")])]);
+ [schema.enum.join(", ")])]);
assertNotValid("", null, schema, [formatError("invalidEnum",
- [enum_values.join(", ")])]);
+ [schema.enum.join(", ")])]);
}
function testChoices() {

Powered by Google App Engine
This is Rietveld 408576698