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

Unified Diff: third_party/pkg/angular/playback_middleware/lib/playback.js

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: third_party/pkg/angular/playback_middleware/lib/playback.js
diff --git a/third_party/pkg/angular/playback_middleware/lib/playback.js b/third_party/pkg/angular/playback_middleware/lib/playback.js
deleted file mode 100644
index b47b8a8514173be81dc6e0340ed79dbeccd08814..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/playback_middleware/lib/playback.js
+++ /dev/null
@@ -1,42 +0,0 @@
-
-function playback(opts) {
- var records = [];
- var seen = {};
-
- function record(key, data) {
- if (seen[key]) return;
- records.push({key: key, data: data});
- seen[key] = true;
- }
-
- function playback() {
- var lines = [
- 'library angular.core.service.playback_data;',
- '',
- 'import "dart:convert";',
- '',
- '// Auto-generated by record-playback',
- '',
- 'Map<String, String> playbackData = {'
- ];
-
- records.forEach(function(r) {
- var keyString = JSON.stringify(r.key).replace(/\$/g, '\\$');
- var valueString = JSON.stringify(r.data).replace(/\$/g, '\\$');
- lines.push(' ' + keyString + ': JSON.decode(' + valueString + '),');
- });
-
- lines.push('};');
-
- return lines.join('\n');
- }
-
- return {
- record: record,
- playback: playback
- }
-}
-
-module.exports = {
- playback: playback
-};

Powered by Google App Engine
This is Rietveld 408576698