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

Side by Side Diff: Tools/GardeningServer/scripts/base_unittests.js

Issue 359283003: Remove usages of jquery and add sugar.js from garden-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge to ToT Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/scripts/base.js ('k') | Tools/GardeningServer/scripts/builders.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 test("parseJSONP", 6, function() { 303 test("parseJSONP", 6, function() {
304 deepEqual(base.parseJSONP(""), {}); 304 deepEqual(base.parseJSONP(""), {});
305 deepEqual(base.parseJSONP('p({"key": "value"})'), {"key": "value"}); 305 deepEqual(base.parseJSONP('p({"key": "value"})'), {"key": "value"});
306 deepEqual(base.parseJSONP('ADD_RESULTS({"dummy":"data"});'), {"dummy":"data" }); 306 deepEqual(base.parseJSONP('ADD_RESULTS({"dummy":"data"});'), {"dummy":"data" });
307 deepEqual(base.parseJSONP('{"dummy":"data"}'), {"dummy":"data"}); 307 deepEqual(base.parseJSONP('{"dummy":"data"}'), {"dummy":"data"});
308 deepEqual(base.parseJSONP('ADD_RESULTS({"builder(1)":"data"});'), {"builder( 1)":"data"}); 308 deepEqual(base.parseJSONP('ADD_RESULTS({"builder(1)":"data"});'), {"builder( 1)":"data"});
309 deepEqual(base.parseJSONP('{"builder(1)":"data"}'), {"builder(1)":"data"}); 309 deepEqual(base.parseJSONP('{"builder(1)":"data"}'), {"builder(1)":"data"});
310 }); 310 });
311 311
312 test("base.queryParam", 2, function() {
313 equal(base.queryParam({}), '');
314 equal(base.queryParam({
315 'foo bar': 'bar baz',
316 '1 2': '3 4',
317 }), 'foo+bar=bar+baz&1+2=3+4');
318 });
319
312 })(); 320 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/base.js ('k') | Tools/GardeningServer/scripts/builders.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698