mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -367,6 +367,9 @@ class Session(object):
|
|||
self.alert = UserPrompt(self)
|
||||
self.actions = Actions(self)
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s %s>" % (self.__class__.__name__, self.session_id or "(disconnected)")
|
||||
|
||||
def __eq__(self, other):
|
||||
return (self.session_id is not None and isinstance(other, Session) and
|
||||
self.session_id == other.session_id)
|
||||
|
@ -628,6 +631,9 @@ class Element(object):
|
|||
assert id not in self.session._element_cache
|
||||
self.session._element_cache[self.id] = self
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s %s>" % (self.__class__.__name__, self.id)
|
||||
|
||||
def __eq__(self, other):
|
||||
return (isinstance(other, Element) and self.id == other.id and
|
||||
self.session == other.session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue