Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham
2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
########################################################################
# $Id$
# Copyright 2009 Aplix Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
########################################################################
UNAME = $(shell uname)
EXAMPLESDIR = .
# The settings of SRCDIR (where to find the xsl style sheets), OBJDIR (where to
# find widlproc and widlprocxml.dtd) and EXAMPLESOBJDIR (where to put the
# resulting html files and any intermediate files) reflect the directory
# structure of the released widlproc.zip file when unzipped. ../Makefile calls
# this Makefile with these settings overridden to reflect the directory
# structure in svn.
SRCDIR = ..
OBJDIR = ..
EXAMPLESOBJDIR = obj
########################################################################
# Linux configuration
#
ifneq (,$(filter Linux%, $(UNAME)))
EXESUFFIX =
else
########################################################################
# Darwin configuration
#
ifneq (,$(filter Darwin%, $(UNAME)))
EXESUFFIX =
else
########################################################################
# Windows (cygwin but using MS compiler) configuration
#
ifneq (,$(filter CYGWIN%, $(UNAME)))
EXESUFFIX = .exe
endif
endif
endif
########################################################################
# Common makefile
#
WIDLPROC = $(OBJDIR)/widlproc$(EXESUFFIX)
DTD = $(OBJDIR)/widlprocxml.dtd
WIDLS = $(patsubst $(EXAMPLESDIR)/%, %, $(wildcard $(EXAMPLESDIR)/*.widl))
test : $(patsubst %.widl, $(EXAMPLESOBJDIR)/%.html, $(WIDLS)) $(EXAMPLESOBJDIR)/widlhtml.css
@echo "$@ pass"
$(EXAMPLESOBJDIR)/%.html : $(EXAMPLESOBJDIR)/%.widlprocxml $(SRCDIR)/widlprocxmltohtml.xsl Makefile
cp $(SRCDIR)/widlprocxmltohtml.xsl $(dir $@)/
xsltproc $(dir $@)/widlprocxmltohtml.xsl $< >$@
$(EXAMPLESOBJDIR)/%.widlprocxml : $(EXAMPLESDIR)/%.widl $(WIDLPROC) $(DTD) Makefile
mkdir -p $(dir $@)
$(WIDLPROC) $< >$@
cp $(OBJDIR)/widlprocxml.dtd $(dir $@)/
xmllint --noout --dtdvalid $(DTD) $@
$(EXAMPLESOBJDIR)/widlhtml.css : $(EXAMPLESDIR)/widlhtml.css
cp $< $@
.DELETE_ON_ERROR:

View File

@@ -0,0 +1,41 @@
########################################################################
# $Id$
# Copyright 2009 Aplix Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
########################################################################
This examples directory contains two of the BONDI .widl files, a Makefile
that processes them to generate html, and a .css file that the resulting
html uses.
The Makefile processes the .widl files as follows:
1. For each .widl, generate the .widlprocxml file (an XML representation
of the information in the .widl) using widlproc.
2. Validate (using xmllint) each .widlprocxml against the DTD.
3. We want any reference in the resulting html to a type elsewhere in the
API to be a link. This is where we achieve this. First generate a
list of fqids (fully qualified identifiers) from fqid attributes in
the XML by running all .widlprocxml files through the style sheet
widlprocxmlfqids.xsl.
4. Turn that list of fqids into a sed script that turns a <ref> to an
fqid into a <ref ref=".."> to the fqid in the right .html file.
5. For each .widlprocxml file, generate a .widlprocxml2 file by running
it through the sed script generated above.
6. For each .widlprocxml2 file, generate a .html file by running it through
the widlprocxmltohtml.xsl style sheet.
See the Makefile for details.

View File

@@ -0,0 +1,227 @@
/*
* Licensed to OMTP Ltd. (OMTP) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding
* copyright ownership.
*
* The Reference Implementation (save for such parts of the reference implementation made
* available under separate terms and conditions) is made available under the terms of the
* Apache License, version 2.0, subject to the condition that any "Works" and "Derivative
* Works" used or distributed for commercial purposes must be and remain compliant with the
* BONDI specification as promulgated by OMTP in each release. Your implementation of the
* Reference Implementation (whether object or source) must maintain these conditions, and
* you must notify any recipient of this condition in a conspicuous way.
*
* You may not use this BONDI Reference Implementation except in compliance with the License.
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 or at
* http://bondi.omtp.org/BONDI-LICENSE-2.0
*/
/**
* \brief Common BONDI functionality.
*
* These definitions can be used in all other BONDI modules as dependencies.
* \version 1.1
*/
module bondi {
/**
* \brief Array of DOMStrings.
*/
typedef sequence<DOMString> StringArray;
/**
* \brief Array of 8-bit unsigned integer values.
*/
typedef sequence<octet> ByteArray;
/**
* \brief Array of 16-bit signed integer values.
*/
typedef sequence<short> ShortArray;
/**
* \brief Array of 32-bit signed integer values.
*/
typedef sequence<long> LongArray;
/**
* \brief Array of floating point values.
*/
typedef sequence<float> FloatArray;
/**
* \brief Generic Map object.
*/
typedef Object Map;
/**
* \brief Generic success callback interface.
*/
[Callback=FunctionOnly, NoInterfaceObject] interface SuccessCallback {
/**
* \brief Method invoked when the asynchronous call completes successfully
*/
void onSuccess();
};
/**
* \brief Success callback interface for requestFeature invocations
*/
[Callback=FunctionOnly, NoInterfaceObject] interface RequestFeatureSuccessCallback {
/**
* \brief Method invoked upon a succesful requestFeature invocation
*
* \param ob Object implementing the JavaScript API associated with the requested Feature.
*/
void onSuccess(in Object ob);
};
/**
* \brief Generic error callback interface.
*/
[Callback=FunctionOnly, NoInterfaceObject] interface ErrorCallback {
/**
* \brief Method invoked when an error occurs
*
* \param error The error that is raised.
*/
void onError(in GenericError error);
};
/**
* \brief Generic error interface.
*
*
*/
interface GenericError {
/**
* \brief 16-bit error code.
*/
readonly attribute unsigned short code;
};
/**
* \brief DeviceApiError error interface.
*
* The error codes must be in the range 10000-19999.
*/
interface DeviceAPIError : GenericError {
/**
* \brief Unknown error.
*/
const unsigned short UNKNOWN_ERROR = 10000;
/**
* \brief Invalid value was specified as input parameter.
*/
const unsigned short INVALID_ARGUMENT_ERROR = 10001;
/**
* \brief The searched value or object was not found.
*/
const unsigned short NOT_FOUND_ERROR = 10002;
/**
* \brief Operation is pending.
*/
const unsigned short PENDING_OPERATION_ERROR = 10003;
/**
* \brief Input/Output error.
*/
const unsigned short IO_ERROR = 10004;
/**
* \brief Not supported error.
*/
const unsigned short NOT_SUPPORTED_ERROR = 10005;
};
/**
* \brief Security error interface.
*
* The error codes must be in the range 20000-29999
*/
interface SecurityError : GenericError {
const unsigned short PERMISSION_DENIED_ERROR = 20000;
};
/**
* \brief PendingOperation.
*
* Interface that is returned by asynchronous operations in order to
* provide a cancellation operation.
*/
interface PendingOperation {
/**
* \brief Call to cancel the underlying asynchronous operation.
*
* This call is always successful, i.e. the pending operation i.e.
* either cancelled or one of the callback is called.
*
* \return <em>false</em> if the cancellation did not succeed
* either because the pending operation finished already or because
* the cancellation cannot succeed due to technical limitations in
* the underlying implementation. Consquently the pending operation
* completes and depending on the success or failure the appropriate
* callbacks will be called.
* <em>true</em> if the cancellation did succeed. No callbacks will
* be called by the cancelled pending operation.
*/
boolean cancel();
};
/**
* \brief BONDI root API.
* bondi root property exists in the global object
* \def-api-feature http://bondi.omtp.org/api/bondi.requestfeature
*/
interface Bondi {
/**
* \brief Requests a feature.
*
* This function requests a named feature
* asynchronously and returns a pending operation object.
* If it succeeds it calls the successCallback and passes in
* the object of the requested feature. If it fails it calls
* the errorCallback passing in a DeviceAPIError which provides
* an error message and error code indicating the nature of the error.
*
* If the requested feature binds itself to a root namespace
* ( for example, "bondi.pim.contact") this will happen prior to the
* successCallback being invoked.
*
* \param successCallback the success callback function
* \param errorCallback the error callback function
* \param name the feature name IRI
*
* \return PendingOperation enabling the requester to cancel this request.
*
* The errorCallback will receive one of the following errors:
* \throw DeviceAPIError INVALID_ARGUMENT_ERROR if a malformed
* argument has been supplied or a required argument has been omitted.
* \throw DeviceAPIError NOT_FOUND_ERROR if the requested feature could not be found.
* \throw SecurityError PERMISSION_DENIED_ERROR if the
* requested feature is not permitted to load/bind or that
* access to a required device capability has been denied.
* \throw DeviceAPIError UNKNOWN_ERROR if an error occurred and a pending
* operation object can't be returned.
*/
PendingOperation requestFeature(in RequestFeatureSuccessCallback successCallback,
in ErrorCallback errorCallback,
in DOMString name)
raises(DeviceAPIError, SecurityError);
};
interface BondiObject {
readonly attribute Bondi bondi;
};
Window implements bondiObject;
};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--====================================================================
$Id$
Copyright 2009 Aplix Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
XSLT stylesheet to extract Web IDL snippets from Web IDL spec.
=====================================================================-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" encoding="utf-8"/>
<xsl:template match="code[@class='idl-code']">
<xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="text()"/>
</xsl:stylesheet>

View File

@@ -0,0 +1,100 @@
body {
padding: 2em;
margin: 0;
font-family: sans-serif;
color: black;
background: white;
background-position: top left;
background-attachment: fixed;
background-repeat: no-repeat;
}
:link { color: #00C; background: transparent }
:visited { color: #609; background: transparent }
a:active { color: #C00; background: transparent }
a:link img, a:visited img { border-style: none } /* no border on img links */
h1, h2, h3, h4, h5, h6 { text-align: left }
/* background should be transparent, but WebTV has a bug */
h1, h2, h3 { color: #009393; background: white }
h1 { font: 170% sans-serif }
h2 { font: 140% sans-serif }
h3 { font: 120% sans-serif }
h4 { font: bold 100% sans-serif }
h5 { font: italic 100% sans-serif }
h6 { font: small-caps 100% sans-serif; margin-bottom: 0 }
.hide { display: none }
code { font-size: 120% }
ul.toc, ol.toc, ul.authors {
list-style: none;
}
.hide { display: none }
div.head { margin-bottom: 1em }
div.head h1 { margin-top: 2em; clear: both }
div.head table { margin-left: 2em; margin-top: 2em }
div.constraint, div.issue, div.note, div.notice { margin-left: 2em; }
div.exampleInner pre { margin-left: 1em; margin-top: 0em; margin-bottom: 0em}
div.exampleOuter {border: 4px double gray; margin: 0em; padding: 0em}
div.exampleInner { background-color: #d5dee3;
border-top-width: 4px;
border-top-style: double;
border-top-color: #d3d3d3;
border-bottom-width: 4px;
border-bottom-style: double;
border-bottom-color: #d3d3d3;
padding: 4px; margin: 0em }
div.exampleWrapper { margin: 4px }
div.exampleHeader { font-weight: bold; margin: 4px}
div.term { font: 100% sans-serif; color:#000000; font-weight: bold; line-height: 60%}
div.list { font: 100% sans-serif; color:#000000; font-weight: normal; line-height: 60%}
.optional {text-decoration: line-through; display: none;}
.copyright,.legalnotice { font-size: small }
.copyright small { font-size: small }
@media screen { /* hide from IE3 */
a[href]:hover { background: #ffa }
}
ol.enumar { list-style-type: decimal; }
ol.enumla { list-style-type: lower-alpha; }
ol.enumlr { list-style-type: lower-roman; }
ol.enumua { list-style-type: upper-alpha; }
ol.enumur { list-style-type: upper-roman; }
/* BONDI additions */
.toc {
list-style-type: none;
}
pre {
background-color:#D5DEE3;
overflow: auto;
padding: 1em;
}
.examplecode {
background-color: #EEE;
}
.def-api-feature-set dt, .def-api-feature dt, dt .def-device-cap, dt.const code { font: bold 100% sans-serif; }
dt.attribute code, dt.method code { font: italic 100% sans-serif; }
.def-device-caps dd { margin-bottom: 2em }
dt.method { margin-top: 2em }
.summary td {
text-align: left;
background-color: #BBDDDD;
color: inherit;
font-family: monospace;
white-space:pre;
padding: .3em 1em .3em 1em;
}