| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "dart:js" as js; | |
| 6 | |
| 7 void main() { | 5 void main() { |
| 8 try { | 6 try { |
| 9 var cached_files = js.createCachedPatchesFile(); | 7 print("Generated Patches"); |
| 10 print("$cached_files"); | |
| 11 } catch (e) { | 8 } catch (e) { |
| 12 var workedElem = document.querySelector("#worked"); | 9 var workedElem = document.querySelector("#worked"); |
| 13 var failedElem = document.querySelector("#failed"); | 10 var failedElem = document.querySelector("#failed"); |
| 14 workedElem.style.dispay = 'none'; | 11 workedElem.style.dispay = 'none'; |
| 15 failedElem.style.visibility = 'inline'; | 12 failedElem.style.visibility = 'inline'; |
| 16 } | 13 } |
| 17 } | 14 } |
| 18 | 15 |
| OLD | NEW |