Skip to content
Permalink
Browse files

Set up dummy directory and modified README w/ deployment instructions

  • Loading branch information...
geoelectric committed Feb 22, 2012
1 parent 2116450 commit 5f9d067b716229bcd9e0ceab2e2766263815bae7
Showing with 113 additions and 0 deletions.
  1. +53 −0 Makefile.in
  2. +23 −0 README
  3. +10 −0 parentMakefile.patch
  4. +27 −0 test_dummy.html
@@ -0,0 +1,53 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is mozilla.org build system.
#
# The Initial Developer of the Original Code is Mozilla Foundation
# Portions created by the Initial Developer are Copyright (C) 2011
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Geo Mealer <gmealer@mozilla.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
relativesrcdir = dom/tests/mochitest/webapps

include $(DEPTH)/config/autoconf.mk

include $(topsrcdir)/config/rules.mk

_TEST_FILES = \
test_dummy.html \
$(NULL)

libs:: $(_TEST_FILES)
$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)

23 README
@@ -0,0 +1,23 @@
This repo represents a WIP graft onto the Firefox mochitest tree of mozilla-central.

To deploy:

1) Clone mozilla-central
2) cd mozilla-central/dom/tests/mochitest
3) Clone this git as:

git clone <address> webapps

4) cd webapps
5) Run the following command to add the webapps directory to mochitest:

patch -d .. < parentMakefile.patch

6) Finally, from the top of mozilla-central, build Firefox.

If you've already built Firefox and just want to graft this in,

Perform steps 1-5 as above
6) From the top of mozilla-central, cd <OBJ-DIR>/dom/tests
7) make

@@ -0,0 +1,10 @@
--- ../Makefile.in.orig 2012-02-21 19:02:28.000000000 -0800
+++ ../Makefile.in 2012-02-21 19:02:46.000000000 -0800
@@ -58,6 +58,7 @@
orientation \
sessionstorage \
storageevent \
+ webapps \
$(NULL)

#needs IPC support, also tests do not run successfully in Firefox for now
@@ -0,0 +1,27 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=
-->
<head>
<meta charset="utf-8">
<title>Dummy Placeholder</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/">Dummy Target</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script type="application/javascript">
/** Always Pass **/
ok(true, "This should always pass");
</script>
</pre>
</body>
</html>

0 comments on commit 5f9d067

Please sign in to comment.
You can’t perform that action at this time.