From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.61; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id DA82377C83 for ; Sun, 13 Aug 2017 16:38:57 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 43659126 for ; Sun, 13 Aug 2017 16:39:00 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7DNcvo5021647 for ; Sun, 13 Aug 2017 16:38:58 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7DNcvKC021644 for ; Sun, 13 Aug 2017 16:38:57 -0700 Date: Sun, 13 Aug 2017 16:38:57 -0700 (PDT) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170713191620.eklhad@comcast.net> Message-ID: References: <20170713073152.eklhad@comcast.net> <20170713191620.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Edbrowse-dev] test #0 X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2017 23:38:58 -0000 Thanks Karl. I'm putting it on list because I hope everyone will have some remarks. Adam, you brough up the acidtests in the first place but I haven't talked to you about it much lately. This is going to be lovely and hospitable JS in some ways, in the same vein as observing that the author called a variable kungfuDeathGrip - goofy, capricious, but at least we know that this is javascript written by human beings, intended to be read, with comments, linefeeds, and carved up into small pieces! So here's the code for test zero. Note: the assertEquals function is referenced but I didn't copy it in also. So that could be a problem for understanding the test, but you can probably tell from context what assertEquals does. It's a utility called at the end of a test, to assert that two things should be equal and pass or fail based on whether they are. function () { // test 0: whether removing an element that is the last child correctly recomputes styles for the new last child // also tests support for getComputedStyle, :last-child, pre-wrap, removing a