Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / GardeningServer / ui / test / ct-unexpected-failures-tests.html
index b35a831..7cbab63 100644 (file)
@@ -65,6 +65,29 @@ describe('ct-unexpected-failures', function() {
       done();
     });
   });
+
+  it('test showing only chromium tree status when chromium', function(done) {
+    var noFailures = document.createElement('ct-unexpected-failures');
+    noFailures.tree = 'chromium';
+
+    setTimeout(function() {
+      assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').length, 1);
+
+      done();
+    });
+  });
+
+  it('test showing both chromium and blink tree status when blink', function(done) {
+    var noFailures = document.createElement('ct-unexpected-failures');
+    noFailures.tree = 'blink';
+
+    setTimeout(function() {
+      assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').length, 2);
+
+      done();
+    });
+  });
+
 });
 
 })();