Bug 1059138: add this bug's testcase as a crashtest. (no review, test-only)
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 27 Jul 2017 15:32:33 -0700
changeset 420297 90b3cc6e01916223335ece76b9d94065d0412dda
parent 420296 1f9ec38274940ff20a1bfc0a6b8c76ea5ae16cff
child 420298 aed855892bc947c5942ea7e92cbf366d27678a86
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1059138
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1059138: add this bug's testcase as a crashtest. (no review, test-only) This bug report became semi-obsolete after we restructured the way flex items are reordered for the CSS 'order' property. I'm adding its testcase as a crashtest for good measure & for regression-testing. MozReview-Commit-ID: 9ytJymbxZx
layout/generic/crashtests/1059138-1.html
layout/generic/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/generic/crashtests/1059138-1.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>Testcase for bug 1059138</title>
+<template>
+  <div class="inner" style="border: 1px solid black; display:flex; width: 500px;">
+    <button class="action-button">
+      ThisIsAButton
+    </button>
+    <content></content>
+  </div>
+</template>
+
+<script>
+  // Gets content from <template>
+  var template = document.querySelector('template').content;
+
+  // Creates an object based in the HTML Element prototype
+  var MyElementProto = Object.create(HTMLElement.prototype);
+
+  // Fires when an instance of the element is created
+  MyElementProto.createdCallback = function() {
+    // Creates the shadow root
+    var shadowRoot = this.createShadowRoot();
+
+    // Adds a template clone into shadow root
+    var clone = document.importNode(template, true);
+    shadowRoot.appendChild(clone);
+  };
+  // Registers <my-elem> in the main document
+  window.MyElement = document.registerElement('my-elem', {
+      prototype: MyElementProto
+  });
+</script>
+</head>
+<body>
+  <my-elem><div>ThisIsADivFlexItem</div></my-elem>
+</body>
+</html>
--- a/layout/generic/crashtests/crashtests.list
+++ b/layout/generic/crashtests/crashtests.list
@@ -577,16 +577,17 @@ asserts(543) load 1015844.html # bug 574
 pref(font.size.inflation.minTwips,200) load 1032450.html
 load 1032613-1.svg
 load 1032613-2.html
 load 1037903.html
 load 1039454-1.html
 load 1042489.html
 load 1054010-1.html
 load 1058954-1.html
+pref(dom.webcomponents.enabled,true) load 1059138-1.html
 load 1134531.html
 load 1134667.html
 load 1137723-1.html
 load 1137723-2.html
 load 1140268-1.html
 load 1145768.html
 load 1146103.html
 load 1146107.html