| OLD | NEW |
| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 }) | 83 }) |
| 84 var view = new MockView(); | 84 var view = new MockView(); |
| 85 var failingBuilders = new controllers.FailingBuilders(view, 'dummy message')
; | 85 var failingBuilders = new controllers.FailingBuilders(view, 'dummy message')
; |
| 86 ok(!failingBuilders.hasFailures()); | 86 ok(!failingBuilders.hasFailures()); |
| 87 | 87 |
| 88 failingBuilders.update({'DummyBuilder': ['webkit_tests']}); | 88 failingBuilders.update({'DummyBuilder': ['webkit_tests']}); |
| 89 ok(failingBuilders.hasFailures()); | 89 ok(failingBuilders.hasFailures()); |
| 90 | 90 |
| 91 equal(view.outerHTML, '<div>' + | 91 equal(view.outerHTML, '<div>' + |
| 92 '<li style="opacity: 0;">' + | 92 '<li>' + |
| 93 '<div class="how"></div>' + | 93 '<div class="how"></div>' + |
| 94 '<div class="what">' + | 94 '<div class="what">' + |
| 95 '<div class="problem">dummy message:' + | 95 '<div class="problem">dummy message:' + |
| 96 '<ul class="effects">' + | 96 '<ul class="effects">' + |
| 97 '<li class="builder"><a class="failing-builder" href="ht
tp://build.chromium.org/p/chromium.webkit/waterfall?builder=DummyBuilder">' + | 97 '<li class="builder"><a class="failing-builder" href="ht
tp://build.chromium.org/p/chromium.webkit/waterfall?builder=DummyBuilder">' + |
| 98 '<span class="version">DummyBuilder</span><span clas
s="failures"> webkit_tests</span></a>' + | 98 '<span class="version">DummyBuilder</span><span clas
s="failures"> webkit_tests</span></a>' + |
| 99 '</li>' + | 99 '</li>' + |
| 100 '</ul>' + | 100 '</ul>' + |
| 101 '</div>' + | 101 '</div>' + |
| 102 '<ul class="causes"></ul>' + | 102 '<ul class="causes"></ul>' + |
| 103 '</div>' + | 103 '</div>' + |
| 104 '</li>' + | 104 '</li>' + |
| 105 '</div>') | 105 '</div>') |
| 106 }); | 106 }); |
| 107 | 107 |
| 108 })(); | 108 })(); |
| OLD | NEW |